diff options
| author | 2020-10-19 12:16:23 -0700 | |
|---|---|---|
| committer | 2020-10-19 12:16:23 -0700 | |
| commit | e94b1312326bc8122b09ab7bf5c2b1339947dc9d (patch) | |
| tree | dfc39a69d426729c98dca083cd3494f316d98240 | |
| parent | 403ae7b43d1c397dd6bf96d4e43f71207eeadc0d (diff) | |
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
| -rw-r--r-- | services/core/java/com/android/server/am/UserController.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/am/UserController.java b/services/core/java/com/android/server/am/UserController.java index eb60573e6f17..b5be037f7ea9 100644 --- a/services/core/java/com/android/server/am/UserController.java +++ b/services/core/java/com/android/server/am/UserController.java @@ -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; } |