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

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

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

# By Ki-Hwan Lee
# Via Android Git Automerger (1) and others
* commit '110fe9b3':
  Fix ViewRootImpl to find missing focus using D-pad.
parents 970b8b3f 110fe9b3
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3849,6 +3849,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;
                    }
                }
            }
        }