diff options
author | John Spurlock <jspurlock@google.com> | 2013-04-29 12:52:25 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-04-29 12:52:26 +0000 |
commit | 8929bae78135bacbff36e0f25bb33ba274b2dcc5 (patch) | |
tree | 833ba1e83e6052ec5791246ae4c3b8b155d7cdf3 /policy | |
parent | 7bb9471ea7841dee087857b0123725bfceb83bb3 (diff) | |
parent | 73bad0ec973d4616fa77536f59747c503d55109a (diff) | |
download | frameworks_base-8929bae78135bacbff36e0f25bb33ba274b2dcc5.zip frameworks_base-8929bae78135bacbff36e0f25bb33ba274b2dcc5.tar.gz frameworks_base-8929bae78135bacbff36e0f25bb33ba274b2dcc5.tar.bz2 |
Merge "Hideybar gesture clears flags if SYSTEM_UI_FLAG_FULLSCREEN"
Diffstat (limited to 'policy')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java index 504413d..a093630 100644 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -4947,7 +4947,16 @@ public class PhoneWindowManager implements WindowManagerPolicy { if (mHideybars == HIDEYBARS_SHOWING) { if (!hideybarsAllowed) { mHideybars = HIDEYBARS_NONE; + if ((tmpVisibility & View.SYSTEM_UI_FLAG_FULLSCREEN) != 0) { + // hideybars for View.SYSTEM_UI_FLAG_FULLSCREEN: clear the clearable flags + int newVal = mResettingSystemUiFlags | View.SYSTEM_UI_CLEARABLE_FLAGS; + if (newVal != mResettingSystemUiFlags) { + mResettingSystemUiFlags = newVal; + mWindowManagerFuncs.reevaluateStatusBarVisibility(); + } + } } else { + // hideybars for WM.LP.FLAG_FULLSCREEN: show transparent status bar tmpVisibility |= View.STATUS_BAR_OVERLAY; if ((mLastSystemUiFlags & View.STATUS_BAR_OVERLAY) == 0) { mStatusBar.showLw(true); |