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

Commit 110fe9b3 authored by Jeff Brown's avatar Jeff Brown Committed by Android Git Automerger
Browse files

am fe1f3a1b: Merge "Fix ViewRootImpl to find missing focus using D-pad."

# By Ki-Hwan Lee
# Via Gerrit Code Review (1) and Ki-Hwan Lee (1)
* commit 'fe1f3a1b':
  Fix ViewRootImpl to find missing focus using D-pad.
parents 4b71a472 fe1f3a1b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3751,6 +3751,13 @@ public final class ViewRootImpl implements ViewParent,
                    if (mView.dispatchUnhandledMove(focused, direction)) {
                        return EVENT_HANDLED;
                    }
                } else {
                    // find the best view to give focus to in this non-touch-mode with no-focus
                    View v = focusSearch(null, direction);
                    if (v != null && v.requestFocus(direction)) {
                        finishInputEvent(q, true);
                        return;
                    }
                }
            }
        }