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

Commit 6234621a authored by William Loh's avatar William Loh Committed by Automerger Merge Worker
Browse files

Merge "Fix pm create-user when creating user with profile of cur" into tm-dev am: 0791182e

parents 65cd3915 0791182e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2675,7 +2675,8 @@ class PackageManagerShellCommand extends ShellCommand {
        while ((opt = getNextOption()) != null) {
            String newUserType = null;
            if ("--profileOf".equals(opt)) {
                userId = UserHandle.parseUserArg(getNextArgRequired());
                userId = translateUserId(UserHandle.parseUserArg(getNextArgRequired()),
                            UserHandle.USER_ALL, "runCreateUser");
            } else if ("--managed".equals(opt)) {
                newUserType = UserManager.USER_TYPE_PROFILE_MANAGED;
            } else if ("--restricted".equals(opt)) {