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

Commit 17230268 authored by Jon Miranda's avatar Jon Miranda
Browse files

Add resume callback to animate back to appropriate depth.

This fixes the bug where depth gets stuck to 1 after opening a transluscent
activity.

Bug: 152950633
Change-Id: I8bf5f61c57ef79d41656865b1ff1fbadb298fc36
parent 86932724
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -291,6 +291,15 @@ public abstract class QuickstepAppTransitionManagerImpl extends LauncherAppTrans
                    launcherContentAnimator.second.run();
                }
            });
        } else {
            anim.addListener(new AnimatorListenerAdapter() {
                @Override
                public void onAnimationStart(Animator animation) {
                    mLauncher.addOnResumeCallback(() ->
                            ObjectAnimator.ofFloat(mLauncher.getDepthController(), DEPTH,
                            mLauncher.getStateManager().getState().getDepth(mLauncher)).start());
                }
            });
        }
    }