Merge "Fix bug checking incorrect AppOp" into sc-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
886d034fb2
@@ -100,7 +100,7 @@ public abstract class LocationPermissionsHelper {
|
||||
return false;
|
||||
}
|
||||
|
||||
return mAppOps.checkOpNoThrow(permissionLevel, identity);
|
||||
return mAppOps.checkOpNoThrow(LocationPermissions.asAppOp(permissionLevel), identity);
|
||||
}
|
||||
|
||||
protected abstract boolean hasPermission(String permission, CallerIdentity callerIdentity);
|
||||
|
||||
Reference in New Issue
Block a user