Merge "Finish mIconAlignmentForLauncherState animation before animating to new value" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-05-07 15:39:42 +00:00
committed by Android (Google) Code Review

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