Loading core/res/res/values/config.xml +6 −0 Original line number Diff line number Diff line Loading @@ -6003,6 +6003,12 @@ <!-- If true, show multiuser switcher by default unless the user specifically disables it. --> <bool name="config_showUserSwitcherByDefault">false</bool> <!-- If true, user can change state of multiuser switcher. --> <bool name="config_allowChangeUserSwitcherEnabled">true</bool> <!-- If true, multiuser switcher would be automatically enabled when second user is created on the device. --> <bool name="config_enableUserSwitcherUponUserCreation">true</bool> <!-- Set to true to make assistant show in front of the dream/screensaver. --> <bool name="config_assistantOnTopOfDream">false</bool> Loading core/res/res/values/symbols.xml +2 −0 Original line number Diff line number Diff line Loading @@ -4695,6 +4695,8 @@ <!-- If true, show multiuser switcher by default unless the user specifically disables it. --> <java-symbol type="bool" name="config_showUserSwitcherByDefault" /> <java-symbol type="bool" name="config_allowChangeUserSwitcherEnabled" /> <java-symbol type="bool" name="config_enableUserSwitcherUponUserCreation" /> <!-- Set to true to make assistant show in front of the dream/screensaver. --> <java-symbol type="bool" name="config_assistantOnTopOfDream"/> Loading services/core/java/com/android/server/pm/UserManagerService.java +5 −2 Original line number Diff line number Diff line Loading @@ -6122,11 +6122,14 @@ public class UserManagerService extends IUserManager.Stub { // If the user switch hasn't been explicitly toggled on or off by the user, turn it on. if (android.provider.Settings.Global.getString(mContext.getContentResolver(), android.provider.Settings.Global.USER_SWITCHER_ENABLED) == null) { if (Resources.getSystem().getBoolean( com.android.internal.R.bool.config_enableUserSwitcherUponUserCreation)) { android.provider.Settings.Global.putInt(mContext.getContentResolver(), android.provider.Settings.Global.USER_SWITCHER_ENABLED, 1); } } } } /** * Gets a pre-created user for the given user type. Loading Loading
core/res/res/values/config.xml +6 −0 Original line number Diff line number Diff line Loading @@ -6003,6 +6003,12 @@ <!-- If true, show multiuser switcher by default unless the user specifically disables it. --> <bool name="config_showUserSwitcherByDefault">false</bool> <!-- If true, user can change state of multiuser switcher. --> <bool name="config_allowChangeUserSwitcherEnabled">true</bool> <!-- If true, multiuser switcher would be automatically enabled when second user is created on the device. --> <bool name="config_enableUserSwitcherUponUserCreation">true</bool> <!-- Set to true to make assistant show in front of the dream/screensaver. --> <bool name="config_assistantOnTopOfDream">false</bool> Loading
core/res/res/values/symbols.xml +2 −0 Original line number Diff line number Diff line Loading @@ -4695,6 +4695,8 @@ <!-- If true, show multiuser switcher by default unless the user specifically disables it. --> <java-symbol type="bool" name="config_showUserSwitcherByDefault" /> <java-symbol type="bool" name="config_allowChangeUserSwitcherEnabled" /> <java-symbol type="bool" name="config_enableUserSwitcherUponUserCreation" /> <!-- Set to true to make assistant show in front of the dream/screensaver. --> <java-symbol type="bool" name="config_assistantOnTopOfDream"/> Loading
services/core/java/com/android/server/pm/UserManagerService.java +5 −2 Original line number Diff line number Diff line Loading @@ -6122,11 +6122,14 @@ public class UserManagerService extends IUserManager.Stub { // If the user switch hasn't been explicitly toggled on or off by the user, turn it on. if (android.provider.Settings.Global.getString(mContext.getContentResolver(), android.provider.Settings.Global.USER_SWITCHER_ENABLED) == null) { if (Resources.getSystem().getBoolean( com.android.internal.R.bool.config_enableUserSwitcherUponUserCreation)) { android.provider.Settings.Global.putInt(mContext.getContentResolver(), android.provider.Settings.Global.USER_SWITCHER_ENABLED, 1); } } } } /** * Gets a pre-created user for the given user type. Loading