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

Commit c5a43594 authored by Gilles Debunne's avatar Gilles Debunne
Browse files

IME is no longer shown when an EditText gets focus.

Change-Id: Ife24f83831f97c911e4e800547182a390cda0d75
parent 99eefad9
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() {