OSDN Git Service

Allow seamless rotation before mTopIsFullscreen is set.
authorRobert Carr <racarr@google.com>
Mon, 15 Aug 2016 19:05:21 +0000 (12:05 -0700)
committerRobert Carr <racarr@google.com>
Mon, 15 Aug 2016 19:25:41 +0000 (12:25 -0700)
commit1ccd42510fe40f5ece98c54cc6fcd2b2724440ac
tree4d925f4e2c1043114a0ab12bc1e52c84a3bfd8de
parent57d9fbd17f32b19a7c5c1ccedcb9cd1428db5986
Allow seamless rotation before mTopIsFullscreen is set.

The difference between mTopFullscreenOpaqueWindowState != null
and mTopIsFullscreen relates to whether the status bar is animating.
However the flag won't be cleared until the next layout pass following
the animation. As long as the window isn't animating we are fine to
rotate seamlessly. This check was copied from selectRotationAnimationLw.
A little code archaeology implies it was perhaps historical and
introduced before the flag had this meaning.

Bug: 30171992
Change-Id: I326bf7766f8ebe307b833d1ca0c0cdfe80b1eb6c
services/core/java/com/android/server/policy/PhoneWindowManager.java