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

Commit 932bc6df authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents 19d8e4e0 bfdfd2a3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -6003,9 +6003,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;
        }