Don't freeze display if it isn't okay to animate.
In window manager world you freeze the display because you want to do a rotation animation and that has the effect to allowing anything to influence the display orientation while the display is frozing. However, when the display is being turned off with the power button we still want the lockscreen to influence the display orientation so there is no rotation animation when the screen comes one. We already have a concept okToAnimate() used to determine if we should run animations. We now also use it to determine if we should freeze the display since freezing the display is a result of want to running a rotation animation. Fixes: 63760853 Test: Repro. steps from bug. Test: go/wm-smoke Change-Id: I9abeda1bd0018f519772f0edce05ea8025efbbbe
Loading
Please register or sign in to comment