Merge "Don't freeze display if it isn't okay to animate." into oc-dr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
932bc6dffc
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user