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

Commit e26ed7e0 authored by Julia Tuttle's avatar Julia Tuttle
Browse files

Don't update visual stability when lockscreen hasn't changed

We'd otherwise be updating on every frame of animations into or out of
the lockscreen!

Bug: 332558345
Fixes: 354065727
Fixes: 354081031
Fixes: 354763436
Flag: com.android.systemui.scene_container
Test: atest VisualStabilityCoordinatorTest
Change-Id: Ia1d3060867ba32757d20788d3b4fdc536fb737c5
parent 48997584
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -384,6 +384,10 @@ public class VisualStabilityCoordinator implements Coordinator, Dumpable {
        }

        final boolean isShowing = value > 0.0f;
        if (isShowing == mLockscreenShowing) {
            return;
        }

        mLockscreenShowing = isShowing;
        updateAllowedStates("lockscreenShowing", isShowing);
    }