diff options
author | John Spurlock <jspurlock@google.com> | 2013-08-14 16:08:45 -0400 |
---|---|---|
committer | John Spurlock <jspurlock@google.com> | 2013-08-14 16:08:45 -0400 |
commit | 261700695053173d502a03630f9e04bf310a9bcd (patch) | |
tree | 20b65216a3b5a0c15f2b1fcc4bda763eaa16a948 /policy | |
parent | a5c81e8636c4b7bc68713f1b2988026b275ae329 (diff) | |
download | frameworks_base-261700695053173d502a03630f9e04bf310a9bcd.zip frameworks_base-261700695053173d502a03630f9e04bf310a9bcd.tar.gz frameworks_base-261700695053173d502a03630f9e04bf310a9bcd.tar.bz2 |
Ensure LOW_PROFILE is always clear when bars are transient.
Bug:10326361
Change-Id: I4d12c4973153aac72bc840840f061ec782e27a87
Diffstat (limited to 'policy')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java index 9da4357..22b5f03 100644 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -5114,11 +5114,14 @@ public class PhoneWindowManager implements WindowManagerPolicy { // show navigation transient bar vis |= View.NAVIGATION_BAR_TRANSIENT; if ((mLastSystemUiFlags & View.NAVIGATION_BAR_TRANSIENT) == 0) { - vis &= ~View.SYSTEM_UI_FLAG_LOW_PROFILE; setBarShowingLw(mNavigationBar, true); } } } + if (mStatusTransientBar != TRANSIENT_BAR_NONE + || mNavigationTransientBar != TRANSIENT_BAR_NONE) { + vis &= ~View.SYSTEM_UI_FLAG_LOW_PROFILE; + } return vis; } @@ -5414,5 +5417,18 @@ public class PhoneWindowManager implements WindowManagerPolicy { pw.print(prefix); pw.print("mDemoHdmiRotation="); pw.print(mDemoHdmiRotation); pw.print(" mDemoHdmiRotationLock="); pw.println(mDemoHdmiRotationLock); pw.print(prefix); pw.print("mUndockedHdmiRotation="); pw.println(mUndockedHdmiRotation); + dumpTransient(pw, prefix, + mStatusBar, "mStatusTransientBar", mStatusTransientBar); + dumpTransient(pw, prefix, + mNavigationBar, "mNavigationTransientBar", mNavigationTransientBar); + } + + private void dumpTransient(PrintWriter pw, String pre, WindowState win, String var, int val) { + if (win != null) { + pw.print(pre); pw.print(var); pw.print('='); + pw.println(val == TRANSIENT_BAR_HIDING ? "HIDING" + : val == TRANSIENT_BAR_SHOWING ? "SHOWING" + : "NONE"); + } } } |