Fix FrameworksServicesTests fail

Using default instead of private results in an unexpected fail on
FrameworksServicesTests. Change to public to fix it.

Fix: 139853891
Test: a11y CTS & unit tests
Change-Id: I307d4f0da96310c310cbd407249b410608e0d0cd
This commit is contained in:
Jackal Guo
2019-08-22 19:12:47 +08:00
parent 549b5bb235
commit f13dbd5c4b

View File

@@ -468,7 +468,13 @@ public class AccessibilitySecurityPolicy {
}
}
boolean hasPermission(String permission) {
/**
* Permission check to caller.
*
* @param permission The permission to check
* @return true if caller has permission
*/
public boolean hasPermission(@NonNull String permission) {
return mContext.checkCallingPermission(permission) == PackageManager.PERMISSION_GRANTED;
}