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

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

Merge "Change a few UserController calls to use isProfile"

parents d366a177 e94b1312
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1307,7 +1307,7 @@ class UserController implements Handler.Callback {
                Slog.w(TAG, "No user info for user #" + userId);
                return false;
            }
            if (foreground && userInfo.isManagedProfile()) {
            if (foreground && userInfo.isProfile()) {
                Slog.w(TAG, "Cannot switch to User #" + userId + ": not a full user");
                return false;
            }
@@ -1612,7 +1612,7 @@ class UserController implements Handler.Callback {
            Slog.w(TAG, "Cannot switch to User #" + targetUserId + ": not supported");
            return false;
        }
        if (targetUserInfo.isManagedProfile()) {
        if (targetUserInfo.isProfile()) {
            Slog.w(TAG, "Cannot switch to User #" + targetUserId + ": not a full user");
            return false;
        }