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

Commit 4f3f31bb authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by The Android Automerger
Browse files

Minor twaek to the focus behavior.

bug:6296603

Change-Id: I3bd0b291e6013cae019ca9049d9d3dc506845ab0
parent f142beb2
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);
        }
    }