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

Commit 82ef0e08 authored by Adam Bookatz's avatar Adam Bookatz Committed by Android (Google) Code Review
Browse files

Merge "Create Supervising Profile if multiuser disabled" into main

parents 1a40f732 24c58b1e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4095,6 +4095,11 @@ public class UserManagerService extends IUserManager.Stub {
            // TODO(b/394178333): This is here for ease-of-rollout. Delete the Guest exception.
            return UserManager.getMaxSupportedUsers() >  1;
        }
        if (UserManager.isUserTypeSupervisingProfile(userType)) {
            // Return true in the scenario that the device doesn't support multi-user, since we'd
            // still want to support Supervising Profiles.
            return UserManager.getMaxSupportedUsers() == 1;
        }
        return false;
    }