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

Commit 9d8580bd authored by Lucas Dupin's avatar Lucas Dupin
Browse files

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 <some test app>
Fixes: 191979512
Change-Id: I7576798f736d63c3e46bbac1b983b9d1a437647d
parent 8db306f3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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()