summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorFlemmard <flemmard@gmail.com>2012-01-28 00:00:43 +0100
committerSteve Kondik <shade@chemlab.org>2012-01-28 16:06:24 -0800
commite3a56d8ea7bea2c9e6127e835880cd49de514751 (patch)
tree9b1e57c120f6f22633110731c089314c90836857 /policy
parent85009103e59e6c927792c8e516038476494a3bde (diff)
downloadframeworks_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-xpolicy/src/com/android/internal/policy/impl/PhoneWindowManager.java5
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;