diff options
author | Flemmard <flemmard@gmail.com> | 2012-01-28 00:00:43 +0100 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2012-01-28 16:06:24 -0800 |
commit | e3a56d8ea7bea2c9e6127e835880cd49de514751 (patch) | |
tree | 9b1e57c120f6f22633110731c089314c90836857 /policy | |
parent | 85009103e59e6c927792c8e516038476494a3bde (diff) | |
download | frameworks_base-e3a56d8ea7bea2c9e6127e835880cd49de514751.zip frameworks_base-e3a56d8ea7bea2c9e6127e835880cd49de514751.tar.gz frameworks_base-e3a56d8ea7bea2c9e6127e835880cd49de514751.tar.bz2 |
Added CombinedBar Auto Hide (1/2)
This allows to enable autoHiding of CombinedBar like on ICS phones.
It adds a Setting in Settings> Interface> System> Cobmined Bar
Change-Id: Idaf4ff23630353102cee585c6d43593167467057
Diffstat (limited to 'policy')
-rwxr-xr-x | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 5 |
1 files changed, 4 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 3a70bc1..e61c877 100755 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -2433,7 +2433,10 @@ public class PhoneWindowManager implements WindowManagerPolicy { // has the FLAG_FULLSCREEN set. Not sure if there is another way that to be the // case though. if (topIsFullscreen) { - if (mStatusBarCanHide) { + if (mStatusBarCanHide || + (((updateSystemUiVisibilityLw() & View.SYSTEM_UI_FLAG_LOW_PROFILE) == 1) && + (Settings.System.getInt(mContext.getContentResolver(), + Settings.System.COMBINED_BAR_AUTO_HIDE, 0) == 1))) { if (DEBUG_LAYOUT) Log.v(TAG, "Hiding status bar"); if (mStatusBar.hideLw(true)) { changes |= FINISH_LAYOUT_REDO_LAYOUT; |