Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e839b62 authored by Phil Weaver's avatar Phil Weaver
Browse files

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
parent b01cac7c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }