Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9b6fe7c authored by Luca Zuccarini's avatar Luca Zuccarini Committed by Automerger Merge Worker
Browse files

Merge "Animate depth from the right value on Taskbar All Apps launches." into...

Merge "Animate depth from the right value on Taskbar All Apps launches." into udc-dev am: c0891e5e am: ee3c41e5

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24224609



Change-Id: I6a4300a733d1ec3b90d7798af0395b6cdd64e9b5
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 8ff5c3b0 ee3c41e5
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -1050,7 +1050,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
        boolean allowBlurringLauncher = mLauncher.getStateManager().getState() != OVERVIEW
                && BlurUtils.supportsBlursOnWindows();

        MyDepthController depthController = new MyDepthController(mLauncher);
        LaunchDepthController depthController = new LaunchDepthController(mLauncher);
        ObjectAnimator backgroundRadiusAnim = ObjectAnimator.ofFloat(depthController.stateDepth,
                        MULTI_PROPERTY_VALUE, BACKGROUND_APP.getDepth(mLauncher))
                .setDuration(APP_LAUNCH_DURATION);
@@ -2051,11 +2051,14 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
        }
    }

    private static class MyDepthController extends DepthController {
        MyDepthController(Launcher l) {
            super(l);
    private static class LaunchDepthController extends DepthController {
        LaunchDepthController(QuickstepLauncher launcher) {
            super(launcher);
            setCrossWindowBlursEnabled(
                    CrossWindowBlurListeners.getInstance().isCrossWindowBlurEnabled());
            // Make sure that the starting value matches the current depth set by the main
            // controller.
            stateDepth.setValue(launcher.getDepthController().stateDepth.getValue());
        }
    }
}