commit | 172302686c8dca0526c5a8189644b7e841c60317 | [log] [tgz] |
---|---|---|
author | Jon Miranda <jonmiranda@google.com> | Thu Apr 16 13:03:48 2020 -0700 |
committer | Jon Miranda <jonmiranda@google.com> | Thu Apr 16 13:03:48 2020 -0700 |
tree | ba1b7ecde284f41d11bdca91036c4fcb5e583b55 | |
parent | 86932724e7ba3f7a1ffa3ae94333ce054426c0fa [diff] |
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
diff --git a/quickstep/src/com/android/launcher3/QuickstepAppTransitionManagerImpl.java b/quickstep/src/com/android/launcher3/QuickstepAppTransitionManagerImpl.java index a30e102..70cbd82 100644 --- a/quickstep/src/com/android/launcher3/QuickstepAppTransitionManagerImpl.java +++ b/quickstep/src/com/android/launcher3/QuickstepAppTransitionManagerImpl.java
@@ -291,6 +291,15 @@ 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()); + } + }); } }