diff --git a/services/core/java/com/android/server/pm/UserManagerService.java b/services/core/java/com/android/server/pm/UserManagerService.java index ae3715c18f457cb8939268c92b737304ba39e525..a15a2af67daa9968ebcd88ecde7ab303b778054d 100644 --- a/services/core/java/com/android/server/pm/UserManagerService.java +++ b/services/core/java/com/android/server/pm/UserManagerService.java @@ -5429,6 +5429,9 @@ public class UserManagerService extends IUserManager.Stub { if (userInfo.isProfile()) { sendProfileAddedBroadcast(userInfo.profileGroupId, userInfo.id); } else { + // Don't enable user switch on parallel space creation. + if (userInfo.isParallel()) return; + // 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) {