Merge "Handle edge-case where no focusables exist" into oc-dev
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user