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

Commit 389b65fe authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android (Google) Code Review
Browse files

Merge "Minor twaek to the focus behavior."

parents 8b461b69 5012ebbc
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -4059,14 +4059,7 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
    void ensureInputFocusOnFirstFocusable() {
        View root = getRootView();
        if (root != null) {
            // Find the first focusble from the top.
            View next = root.focusSearch(FOCUS_FORWARD);
            if (next != null) {
                // Giving focus to the found focusable will not
                // perform a search since we found a view that is
                // guaranteed to be able to take focus.
                next.requestFocus(FOCUS_FORWARD);
            }
            root.requestFocus(FOCUS_FORWARD);
        }
    }