mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 18:28:20 +00:00
Merge "Finish mIconAlignmentForLauncherState animation before animating to new value" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
062d96721c
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user