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

Commit 851cf405 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:...

Merge "Don't freeze display if it isn't okay to animate." into oc-dr1-dev am: 932bc6df am: b52e3dd1
am: 21125747

Change-Id: I24618abf6fd0da5b74ae2d3eb9202d2c4c3e4c7a
parents 84752fd7 21125747
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -6011,9 +6011,9 @@ public class WindowManagerService extends IWindowManager.Stub
            return;
            return;
        }
        }


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