Merge "Clear ref after animation if visual stashing not supported" into sc-v2-dev

This commit is contained in:
Winson Chung
2021-11-22 17:22:16 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}