OSDN Git Service

Don't freeze display if it isn't okay to animate.
authorWale Ogunwale <ogunwale@google.com>
Thu, 27 Jul 2017 21:14:23 +0000 (14:14 -0700)
committerWale Ogunwale <ogunwale@google.com>
Fri, 28 Jul 2017 12:08:09 +0000 (12:08 +0000)
commitbfdfd2a31b6c49c5b7d9dbf060b8a43f4a1ff6e7
tree84fdc975fa9f8b30ca88f957a4b893ebf20805a6
parent076d6f76698b90903496c8da55cc7bfc72fd72c3
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
services/core/java/com/android/server/wm/WindowManagerService.java