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

Commit 360f50e6 authored by Chirayu Desai's avatar Chirayu Desai
Browse files

Power menu: allow enabling user switcher

Change-Id: I089efbf2bec2339cb2630e597aa3778b6100c9c0
parent 15661444
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2872,6 +2872,12 @@ public final class Settings {
         */
        public static final String POWER_MENU_AIRPLANE_ENABLED = "power_menu_airplane_enabled";

        /**
         * Whether power menu user switcher is enabled
         * @hide
         */
        public static final String POWER_MENU_USER_ENABLED = "power_menu_user_enabled";

        /**
         * Whether power menu silent mode is enabled
         * @hide
@@ -2961,6 +2967,7 @@ public final class Settings {
            POWER_MENU_PROFILES_ENABLED,
            POWER_MENU_AIRPLANE_ENABLED,
            POWER_MENU_SILENT_ENABLED,
            POWER_MENU_USER_ENABLED,
        };

        // Settings moved to Settings.Secure
+2 −1
Original line number Diff line number Diff line
@@ -436,7 +436,8 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac
        }

        // next: optionally add a list of users to switch to
        if (SystemProperties.getBoolean("fw.power_user_switcher", false)) {
        if (Settings.System.getInt(mContext.getContentResolver(),
                Settings.System.POWER_MENU_USER_ENABLED, 0) == 1) {
            addUsersToMenu(mItems);
        }