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:
Phil Weaver
2017-01-31 17:18:55 -08:00
parent b01cac7c53
commit 8e839b6224

View File

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