diff options
| author | 2016-10-26 14:12:14 -0700 | |
|---|---|---|
| committer | 2016-10-26 14:13:54 -0700 | |
| commit | 0b9ac5a20fea57fe438b29265b12ce270a69df49 (patch) | |
| tree | 6e9cc490cda54c385e76766e47ea1d283ef2cb7e | |
| parent | ec36a7a9448cb5b3f674809820e666bb49005bb3 (diff) | |
Disable seamless rotation when nav bar jumps.
When the nav bar visually moves on rotation, we want
to disable seamless rotation. We could investigate later
if it could be made to work.
Test: Try rotating camera video view on tablet.
Bug: 31817280
Change-Id: Ie13d7eaafd8bb66c8db574cd81d76fa9ca860e51
| -rw-r--r-- | services/core/java/com/android/server/policy/PhoneWindowManager.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/policy/PhoneWindowManager.java b/services/core/java/com/android/server/policy/PhoneWindowManager.java index b8b16d5acdce..819deeb666c8 100644 --- a/services/core/java/com/android/server/policy/PhoneWindowManager.java +++ b/services/core/java/com/android/server/policy/PhoneWindowManager.java @@ -7919,6 +7919,12 @@ public class PhoneWindowManager implements WindowManagerPolicy { if (oldRotation == mUpsideDownRotation || newRotation == mUpsideDownRotation) { return false; } + // If the navigation bar can't change sides, then it will + // jump when we change orientations and we don't rotate + // seamlessly. + if (!mNavigationBarCanMove) { + return false; + } int delta = newRotation - oldRotation; if (delta < 0) delta += 4; // Likewise we don't rotate seamlessly for 180 degree rotations |