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

Commit 22374c0f authored by Robert Carr's avatar Robert Carr
Browse files

Correct out of range error in getTopVisibleActivities.

Looks like just a typo.

Test: Launch Settings > Google > Search > Voice > "OK Google" Detection. Train voice model. Say ok google.
Bug: 35590598
Change-Id: I882f5695a94940d0dc7df911b1f8d55e372d1828
parent 2d8f7e80
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4922,7 +4922,7 @@ public class ActivityStackSupervisor extends ConfigurationContainer implements D
    List<IBinder> getTopVisibleActivities() {
        final ArrayList<IBinder> topActivityTokens = new ArrayList<>();
        // Traverse all displays.
        for (int i = mActivityDisplays.size(); i >= 0; i--) {
        for (int i = mActivityDisplays.size() - 1; i >= 0; i--) {
            final ActivityDisplay display = mActivityDisplays.valueAt(i);
            // Traverse all stacks on a display.
            for (int j = display.mStacks.size() - 1; j >= 0; j--) {