From 9d8580bd2a06705ce671ace1b5bc766fb8d7367a Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Mon, 28 Jun 2021 11:45:14 -0700 Subject: [PATCH] Reset DEPTH at the end of launch animations This way the wallpaper won't be zoomed out if an app crashes. Test: adb am crash Fixes: 191979512 Change-Id: I7576798f736d63c3e46bbac1b983b9d1a437647d --- .../src/com/android/launcher3/QuickstepTransitionManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java b/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java index 3b3f0bde8b..244bfc31c1 100644 --- a/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java +++ b/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java @@ -981,6 +981,9 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener backgroundRadiusAnim.addListener(new AnimatorListenerAdapter() { @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.setSurface(null); if (dimLayer != null) { new SurfaceControl.Transaction()