OSDN Git Service

Fix invalid divider state while rotating
authorJorim Jaggi <jjaggi@google.com>
Thu, 25 Aug 2016 22:57:41 +0000 (15:57 -0700)
committerJorim Jaggi <jjaggi@google.com>
Fri, 26 Aug 2016 23:38:33 +0000 (23:38 +0000)
commit160a3c578c5cbbe31f3dbb51fc0a78ee6d80c5cd
treea37e8542f6a8002131c98d7a53efedcc350c7237
parent80c031cbd40f211f8cef9856f9c5fc90846d2802
Fix invalid divider state while rotating

- Sometimes there is no window attached to the app token during a
rotation. In this case, we also want to return a valid dock side, so
we check for hiddenRequested instead of traversing the windows
of an app window token.
- The logic to notify SystemUI about rotation changes never really
worked. Remove the dock side check as the dock side is guaranteed
to change if we change the screen rotation
- Also clean up visibility methods a bit.

Test: Manually tested the interaction when in docked state landscape,
and going home with locked home rotation like 20 times. Also tested
multi-user interaction with docking.

Change-Id: Ibcd181cadc9bc5a97dbd20e67d15bb1c88de5b97
Fixes: 29569499
services/core/java/com/android/server/wm/DisplayContent.java
services/core/java/com/android/server/wm/Task.java
services/core/java/com/android/server/wm/TaskStack.java