Correct accessibility check for current user
This fixes a bug I introduced in ag/1444443 as the result of missing a comment. Bug: 34077911 Test: Manually verified that EBT is no longer broken Change-Id: Iec7484c515f8b08ab2e04b4f513629cb6509ab7a
This commit is contained in:
@@ -2632,7 +2632,7 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
|
||||
// share the accessibility state of the parent. The call below
|
||||
// performs the current profile parent resolution.
|
||||
final int resolvedUserId = mSecurityPolicy
|
||||
.resolveCallingUserIdEnforcingPermissionsLocked(UserHandle.getCallingUserId());
|
||||
.resolveCallingUserIdEnforcingPermissionsLocked(UserHandle.USER_CURRENT);
|
||||
return resolvedUserId == mCurrentUserId;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user