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

Commit 0e2f3849 authored by Tony Wickham's avatar Tony Wickham Committed by Android (Google) Code Review
Browse files

Merge "Make sure user can always get to next page with keyboard." into ub-launcher3-burnaby-polish

parents 0f6f2b18 c2964cb6
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -346,6 +346,18 @@ public class FocusLogic {
                }
            }
        }

        // Rule 3: if switching between pages, do a brute-force search to find an item that was
        //         missed by rules 1 and 2 (such as when going from a bottom right icon to top left)
        if (iconIdx == PIVOT) {
            for (int x = xPos + increment; 0 <= x && x < cntX; x = x + increment) {
                for (int y = 0; y < cntY; y++) {
                    if ((newIconIndex = inspectMatrix(x, y, cntX, cntY, matrix)) != NOOP) {
                        return newIconIndex;
                    }
                }
            }
        }
        return newIconIndex;
    }