Loading core/java/android/provider/Settings.java +7 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 Loading policy/src/com/android/internal/policy/impl/GlobalActions.java +2 −1 Original line number Diff line number Diff line Loading @@ -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); } Loading Loading
core/java/android/provider/Settings.java +7 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 Loading
policy/src/com/android/internal/policy/impl/GlobalActions.java +2 −1 Original line number Diff line number Diff line Loading @@ -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); } Loading