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

Commit 441f381b authored by Wale Ogunwale's avatar Wale Ogunwale Committed by android-build-merger
Browse files

Merge "Don't freeze display if it isn't okay to animate." into oc-dr1-dev

am: 932bc6df

Change-Id: Icee06050d8000ada0ed7973a7befb90a1273238b
parents 7f2953e9 932bc6df
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -6011,9 +6011,9 @@ public class WindowManagerService extends IWindowManager.Stub
            return;
        }

        if (!displayContent.isReady() || !mPolicy.isScreenOn()) {
            // No need to freeze the screen before the display is ready, system is ready, or if
            // the screen is off.
        if (!displayContent.isReady() || !mPolicy.isScreenOn() || !okToAnimate()) {
            // No need to freeze the screen before the display is ready,  if the screen is off,
            // or we can't currently animate.
            return;
        }