commit | 78357f79798f235008c9318a6df4776921f2d758 | [log] [tgz] |
---|---|---|
author | Alex Chau <alexchau@google.com> | Fri May 06 17:34:07 2022 +0100 |
committer | Alex Chau <alexchau@google.com> | Fri May 06 17:34:07 2022 +0100 |
tree | 3a425af7d812459cbbd9598f00edf8cb5292f1aa | |
parent | 6183c4dd7400f6624143645a419e627bdbf77bd4 [diff] |
Finish mIconAlignmentForLauncherState animation before animating to new value Fix: 230630665 Test: Launch app and return home, taskbar animation should be smooth Change-Id: Ie6c7daac7f185a51476a9d076dde628d57ff77eb
diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarLauncherStateController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarLauncherStateController.java index 138fb99..2be1179 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarLauncherStateController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarLauncherStateController.java
@@ -372,6 +372,7 @@ // If we're already animating to the value, just leave it be instead of restarting it. if (!mIconAlignmentForLauncherState.isAnimatingToValue(toAlignment)) { + mIconAlignmentForLauncherState.finishAnimation(); animatorSet.play(mIconAlignmentForLauncherState.animateToValue(toAlignment) .setDuration(duration)); }