Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3a56d8e authored by Flemmard's avatar Flemmard Committed by Steve Kondik
Browse files

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
parent 85009103
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2106,6 +2106,10 @@ public final class Settings {
        */
        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)
+4 −1
Original line number Diff line number Diff line
@@ -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;