Merge "Change a few UserController calls to use isProfile"

This commit is contained in:
Adam Bookatz
2020-10-20 01:43:10 +00:00
committed by Android (Google) Code Review

View File

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