Skip to content

Commit

Permalink
Added CombinedBar Auto Hide (1/2)
Browse files Browse the repository at this point in the history
This allows to enable autoHiding of CombinedBar like on ICS phones.
It adds a Setting in Settings> Interface> System> Cobmined Bar

Change-Id: Idaf4ff23630353102cee585c6d43593167467057
  • Loading branch information
Flemmard authored and hyperb1iss committed Jan 29, 2012
1 parent 8500910 commit e3a56d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions core/java/android/provider/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -2106,6 +2106,10 @@ public static void setShowGTalkServiceStatus(ContentResolver cr, boolean flag) {
*/
public static final String EXPANDED_FLASH_MODE = "expanded_flash_mode";

/**
*/
public static final String COMBINED_BAR_AUTO_HIDE = "combined_bar_auto_hide";

/**
* Display style of AM/PM next to clock in status bar
* 0: Normal display (Eclair stock)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2433,7 +2433,10 @@ public int finishAnimationLw() {
// 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;
Expand Down

0 comments on commit e3a56d8

Please sign in to comment.