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

Commit 0c05edf0 authored by Android (Google) Code Review's avatar Android (Google) Code Review Committed by Android Git Automerger
Browse files

am 9c71716e: Merge change 9063 into donut

Merge commit '9c71716e'

* commit '9c71716e':
  Fixing bug #2023024 - there is an out of bounds exception that
parents 2a8c531b 9c71716e
Loading
Loading
Loading
Loading
+13 −6
Original line number Diff line number Diff line
@@ -323,6 +323,7 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
     */
    private void notifyAccessibilityServicesDelayedLocked(AccessibilityEvent event,
            boolean isDefault) {
        try {
            for (int i = 0, count = mServices.size(); i < count; i++) {
                Service service = mServices.get(i);

@@ -333,6 +334,12 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
                    }
                }
            }
        } catch (IndexOutOfBoundsException oobe) {
            // An out of bounds exception can happen if services are going away
            // as the for loop is running. If that happens, just bail because
            // there are no more services to notify.
            return;
        }
    }

    /**