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

Commit 71dcdc3c authored by Tracy Zhou's avatar Tracy Zhou Committed by Automerger Merge Worker
Browse files

Merge "Update task bar icon alignment logic when launcher is paused and...

Merge "Update task bar icon alignment logic when launcher is paused and resumed in Overview" into tm-dev am: abc22883

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



Change-Id: Id556083667a1232bd1e1ee6fb7de3495f1a1fe02
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 24e69d07 abc22883
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -257,7 +257,10 @@ import java.util.function.Supplier;
        if (hasAnyFlag(changedFlags, FLAG_RESUMED)
                || launcherStateChangedDuringAnimToResumeAlignment) {
            boolean isResumed = isResumed();
            float toAlignmentForResumedState = isResumed && goingToUnstashedLauncherState() ? 1 : 0;
            // If launcher is resumed, we show the icons when going to an unstashed launcher state
            // or launcher state is not changed (e.g. in overview, launcher is paused and resumed).
            float toAlignmentForResumedState = isResumed && (goingToUnstashedLauncherState()
                    || !goingToUnstashedLauncherStateChanged) ? 1 : 0;
            // If we're already animating to the value, just leave it be instead of restarting it.
            if (!mIconAlignmentForResumedState.isAnimatingToValue(toAlignmentForResumedState)) {
                ObjectAnimator resumeAlignAnim = mIconAlignmentForResumedState