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

Commit 5d503176 authored by Ashley Holton's avatar Ashley Holton
Browse files

Fix typo in SparseArray access in resetDisplayInteractivities

When looping through the group ID to display IDs sparse array mapping,
access the display IDs array by groupID instead of iterating variable i.

Flag: EXEMPT bug fix
Bug: 371239821
Test: atest AccessibilityDisplayProxyTest
Change-Id: Iab606367b30575c20d6837e69d9e1d9abe230d49
parent f7faa164
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -709,7 +709,7 @@ public class Notifier {
        SparseBooleanArray newDisplayInteractivities = new SparseBooleanArray();
        for (int i = 0; i < displaysByGroupId.size(); i++) {
            final int groupId = displaysByGroupId.keyAt(i);
            for (int displayId : displaysByGroupId.get(i)) {
            for (int displayId : displaysByGroupId.get(groupId)) {
                // If we already know display interactivity, use that
                if (mDisplayInteractivities.indexOfKey(displayId) > 0) {
                    newDisplayInteractivities.put(