mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Decouple zooms and blurs on app launch
We'd like to be able to disable blurs during app launch, but without disabling zooms as well. The previous sysprop would set the depth of BackgroundAppState to 0, when what we want is to conserve wallpaper zoom. Bug: 191969790 Test: adb shell setprop ro.launcher.blur.appLaunch false Change-Id: Ie4b26096f6ac723c3981bba2829557e6cc6c733b
This commit is contained in:
@@ -981,11 +981,14 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
|
||||
|
||||
depthController.setSurface(dimLayer);
|
||||
backgroundRadiusAnim.addListener(new AnimatorListenerAdapter() {
|
||||
@Override
|
||||
public void onAnimationStart(Animator animation) {
|
||||
depthController.setIsInLaunchTransition(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAnimationEnd(Animator animation) {
|
||||
// Reset depth at the end of the launch animation, so the wallpaper won't be
|
||||
// zoomed out if an app crashes.
|
||||
DEPTH.setValue(depthController, 0f);
|
||||
depthController.setIsInLaunchTransition(false);
|
||||
depthController.setSurface(null);
|
||||
if (dimLayer != null) {
|
||||
new SurfaceControl.Transaction()
|
||||
|
||||
Reference in New Issue
Block a user