Merge "Do not trigger revoke-perm callbacks if no change" into qt-dev
am: 5401046356
Change-Id: I6b55377cd97583ecf61875b27dc17a91cb344e67
This commit is contained in:
@@ -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