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

Commit f4c31bf6 authored by Evan Rosky's avatar Evan Rosky Committed by Android (Google) Code Review
Browse files

Merge "Handle edge-case where no focusables exist" into oc-dev

parents e262cc23 5b860719
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -4675,7 +4675,8 @@ public final class ViewRootImpl implements ViewParent,
            if (focused == null && mView.restoreDefaultFocus()) {
            if (focused == null && mView.restoreDefaultFocus()) {
                return true;
                return true;
            }
            }
            View cluster = focused.keyboardNavigationClusterSearch(null, direction);
            View cluster = focused == null ? keyboardNavigationClusterSearch(null, direction)
                    : focused.keyboardNavigationClusterSearch(null, direction);


            // Since requestFocus only takes "real" focus directions (and therefore also
            // Since requestFocus only takes "real" focus directions (and therefore also
            // restoreFocusInCluster), convert forward/backward focus into FOCUS_DOWN.
            // restoreFocusInCluster), convert forward/backward focus into FOCUS_DOWN.