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

Commit 031c227e authored by Michael A. Alcorn's avatar Michael A. Alcorn Committed by Gerrit Code Review
Browse files

Option to show status bar in expanded desktop mode (2/2)



This commit allows the user to keep the status bar visible during expanded desktop mode.

Patch-set 1: clarify variable names.

Change-Id: Icb20971f8f86cb2ecf90f6226c1d5d18a60f5c84
Signed-off-by: default avatarMichael A. Alcorn <airalcorn2@gmail.com>
parent e8b4b3b9
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -2798,11 +2798,17 @@ public final class Settings {
        public static final String STATUS_BAR_IME_SWITCHER = "status_bar_ime_switcher";

         /**
         * Statusbar State
         * Expanded desktop on/off state
         * @hide
         */
        public static final String EXPANDED_DESKTOP_STATE = "expanded_desktop_state";

        /**
         * Expanded desktop style (with status bar or without status bar)
         * @hide
         */
        public static final String EXPANDED_DESKTOP_STYLE = "expanded_desktop_style";

        /**
         * Whether to use a separate delay for "slide to unlock" and security
         * lock
+4 −1
Original line number Diff line number Diff line
@@ -3473,7 +3473,10 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                // and mTopIsFullscreen is that that mTopIsFullscreen is set only if the window
                // has the FLAG_FULLSCREEN set.  Not sure if there is another way that to be the
                // case though.
                if (topIsFullscreen || Settings.System.getInt(mContext.getContentResolver(), Settings.System.EXPANDED_DESKTOP_STATE, 0) == 1) {
                if (topIsFullscreen || (Settings.System.getInt(mContext.getContentResolver(),
                                        Settings.System.EXPANDED_DESKTOP_STATE, 0) == 1 &&
                                        Settings.System.getInt(mContext.getContentResolver(),
                                        Settings.System.EXPANDED_DESKTOP_STYLE, 0) == 2)) {
                    if (DEBUG_LAYOUT) Log.v(TAG, "** HIDING status bar");
                    if (mStatusBar.hideLw(true)) {
                        changes |= FINISH_LAYOUT_REDO_LAYOUT;