Merge "Finish mIconAlignmentForLauncherState animation before animating to new value" into tm-dev am: 062d96721c

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18198384

Change-Id: I2ee45d9697d0f7a794de4bc6e643e538b0319d70
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
TreeHugger Robot
2022-05-07 16:10:10 +00:00
committed by Automerger Merge Worker

View File

@@ -372,6 +372,7 @@ import java.util.function.Supplier;
// 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));
}