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

Commit e94b1312 authored by Adam Bookatz's avatar Adam Bookatz
Browse files

Change a few UserController calls to use isProfile

These should be isProfile instead of isManagedProfile.
Right now, there is no practical difference, but it
could be useful later.

Test: N/A (it's a no-op)
Bug: 170249807
Change-Id: I32d0c8d1c209f0f1e3c95c4b2911f6d12ed2c804
parent 403ae7b4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1309,7 +1309,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;
            }
@@ -1614,7 +1614,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;
        }