Merge "Fix bug checking incorrect AppOp" into sc-qpr1-dev am: 886d034fb2 am: 6c3520b4bc am: 74fef03657

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15994552

Change-Id: Ie99ce82a7a044937a8b007bd32ea1ecc0c2f40ff
This commit is contained in:
TreeHugger Robot
2021-10-07 01:46:38 +00:00
committed by Automerger Merge Worker

View File

@@ -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);