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
This commit is contained in:
Adam Bookatz
2020-10-19 12:16:23 -07:00
parent 403ae7b43d
commit e94b131232

View File

@@ -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;
}