diff options
-rw-r--r-- | services/core/java/com/android/server/am/UserController.java | 3 |
1 files changed, 1 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 9562158f9bb6..1bf761ff9d2a 100644 --- a/services/core/java/com/android/server/am/UserController.java +++ b/services/core/java/com/android/server/am/UserController.java @@ -1891,8 +1891,7 @@ class UserController implements Handler.Callback { if (callingUid != 0 && callingUid != SYSTEM_UID) { final boolean allow; final boolean isSameProfileGroup = isSameProfileGroup(callingUserId, targetUserId); - if (mInjector.isCallerRecents(callingUid) - && isSameProfileGroup(callingUserId, targetUserId)) { + if (mInjector.isCallerRecents(callingUid) && isSameProfileGroup) { // If the caller is Recents and the caller has ownership of the profile group, // we then allow it to access its profiles. allow = true; |