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

Commit 2dcd402c authored by Phil Weaver's avatar Phil Weaver Committed by Gerrit Code Review
Browse files

Merge "Fix concurrent modify exception for A11y"

parents d46665bd 8f22ff72
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -766,6 +766,10 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
            // performs the current profile parent resolution.
            final int resolvedUserId = mSecurityPolicy
                    .resolveCallingUserIdEnforcingPermissionsLocked(userId);

            if (Binder.getCallingPid() == OWN_PROCESS_ID) {
                return new ArrayList<>(getUserStateLocked(resolvedUserId).mInstalledServices);
            }
            return getUserStateLocked(resolvedUserId).mInstalledServices;
        }
    }