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

Commit 8e95d6a9 authored by Evan Rosky's avatar Evan Rosky Committed by android-build-merger
Browse files

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

Merge "Merge "Handle edge-case where no focusables exist" into oc-dev am: f4c31bf6" into oc-dev-plus-aosp
am: a5abe8f1

Change-Id: Ic5dc4d9ddb8626196ea16638e431869f3fbb5536
parents 91b70573 a5abe8f1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4675,7 +4675,8 @@ public final class ViewRootImpl implements ViewParent,
            if (focused == null && mView.restoreDefaultFocus()) {
                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
            // restoreFocusInCluster), convert forward/backward focus into FOCUS_DOWN.