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

Commit 88da95c1 authored by bait_dispatcher_monitor_system's avatar bait_dispatcher_monitor_system Committed by Gerrit - the friendly Code Review server
Browse files

Merge "AccessibilityManager: Handling IndexOutOfBoundsException"

parents 3a2bc1eb bc678305
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -642,7 +642,11 @@ public final class AccessibilityManager {
        }
        final int listenerCount = mAccessibilityStateChangeListeners.size();
        for (int i = 0; i < listenerCount; i++) {
            try {
                mAccessibilityStateChangeListeners.get(i).onAccessibilityStateChanged(isEnabled);
            } catch (IndexOutOfBoundsException e) {
                Log.e(LOG_TAG, "Error while notifying Accessibility State Change : " + e);
            }
        }
    }