Merge "Fix order of uid/pid in LocationAccessPolicy" into rvc-dev am: f6d37fc03f am: ed6c9bc9bf am: 6aad845374
Change-Id: I6050a983b38a42dfd8e0d42c7acb6558836f6fba
This commit is contained in:
@@ -311,7 +311,7 @@ public final class LocationAccessPolicy {
|
|||||||
}
|
}
|
||||||
// If the user or profile is current, permission is granted.
|
// If the user or profile is current, permission is granted.
|
||||||
// Otherwise, uid must have INTERACT_ACROSS_USERS_FULL permission.
|
// Otherwise, uid must have INTERACT_ACROSS_USERS_FULL permission.
|
||||||
return isCurrentProfile(context, uid) || checkInteractAcrossUsersFull(context, uid, pid);
|
return isCurrentProfile(context, uid) || checkInteractAcrossUsersFull(context, pid, uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isLocationModeEnabled(@NonNull Context context, @UserIdInt int userId) {
|
private static boolean isLocationModeEnabled(@NonNull Context context, @UserIdInt int userId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user