commit | c2a84d887f22221b22330f5401052b702f0000a9 | [log] [tgz] |
---|---|---|
author | Winson Chung <winsonc@google.com> | Fri Nov 19 23:52:18 2021 +0000 |
committer | Winson Chung <winsonc@google.com> | Fri Nov 19 23:52:18 2021 +0000 |
tree | 72f67bc37e3e67bbe480c763cd2a85e0531460d3 | |
parent | 5e49df2bbe05752726c9d8b13c372edef6522d42 [diff] |
Clear ref after animation if visual stashing not supported Bug: 206814323 Test: Presubmit Change-Id: Ia38bd2707edbddf1b1f2ad98b3cdac4c8c62a6d3
diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java index acb4aa8..60842c8 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java
@@ -282,6 +282,12 @@ // Just hide/show the icons instead of stashing into a handle. mAnimator.play(mIconAlphaForStash.animateToValue(isStashed ? 0 : 1) .setDuration(duration)); + mAnimator.addListener(new AnimatorListenerAdapter() { + @Override + public void onAnimationEnd(Animator animation) { + mAnimator = null; + } + }); return; }