Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78357f79 authored by Alex Chau's avatar Alex Chau
Browse files

Finish mIconAlignmentForLauncherState animation before animating to new value

Fix: 230630665
Test: Launch app and return home, taskbar animation should be smooth
Change-Id: Ie6c7daac7f185a51476a9d076dde628d57ff77eb
parent 6183c4dd
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -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 we're already animating to the value, just leave it be instead of restarting it.
        if (!mIconAlignmentForLauncherState.isAnimatingToValue(toAlignment)) {
        if (!mIconAlignmentForLauncherState.isAnimatingToValue(toAlignment)) {
            mIconAlignmentForLauncherState.finishAnimation();
            animatorSet.play(mIconAlignmentForLauncherState.animateToValue(toAlignment)
            animatorSet.play(mIconAlignmentForLauncherState.animateToValue(toAlignment)
                    .setDuration(duration));
                    .setDuration(duration));
        }
        }