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

This commit is contained in:
TreeHugger Robot
2017-07-28 14:17:01 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}