Merge "Do not trigger revoke-perm callbacks if no change" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5401046356
@@ -2269,6 +2269,11 @@ public class PermissionManagerService {
|
||||
return;
|
||||
}
|
||||
|
||||
// Permission is already revoked, no need to do anything.
|
||||
if (!permissionsState.hasRuntimePermission(permName, userId)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (permissionsState.revokeRuntimePermission(bp, userId) ==
|
||||
PERMISSION_OPERATION_FAILURE) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user