From c2a84d887f22221b22330f5401052b702f0000a9 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Fri, 19 Nov 2021 23:52:18 +0000 Subject: [PATCH] Clear ref after animation if visual stashing not supported Bug: 206814323 Test: Presubmit Change-Id: Ia38bd2707edbddf1b1f2ad98b3cdac4c8c62a6d3 --- .../android/launcher3/taskbar/TaskbarStashController.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java index acb4aa8632..60842c8d72 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java @@ -282,6 +282,12 @@ public class TaskbarStashController { // 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; }