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

Commit fb2e9d23 authored by Gilles Debunne's avatar Gilles Debunne Committed by Android (Google) Code Review
Browse files

Merge "IME is no longer shown when an EditText gets focus."

parents f5d41653 c5a43594
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -7197,14 +7197,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
        }

        super.onFocusChanged(focused, direction, previouslyFocusedRect);

        // Performed after super.onFocusChanged so that this TextView is registered and can ask for
        // the IME. Showing the IME while focus is moved using the D-Pad is a bad idea, however this
        // does not happen in that case (using the arrows on a bluetooth keyboard).
        if (focused && isTextEditable()) {
            final InputMethodManager imm = InputMethodManager.peekInstance();
            if (imm != null) imm.showSoftInput(this, 0);
        }
    }

    private int getLastTapPosition() {