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

Commit 77b25a34 authored by Gilles Debunne's avatar Gilles Debunne
Browse files

Keyboard is not displayed when selecting read-only text.

Change-Id: Id8d1fb7ebd85a36a1e587b4e2bbbabf82aa1bdd7
parent 7ffd0871
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -7117,7 +7117,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
                        csr = new CommitSelectionReceiver(oldSelStart, oldSelEnd);
                    }

                    if (!mTextIsSelectable) {
                        // Selection in read-only text should not bring up the IME.
                        handled |= imm.showSoftInput(this, 0, csr) && (csr != null);
                    }

                    // Cannot be done by CommitSelectionReceiver, which might not always be called,
                    // for instance when dealing with an ExtractEditText.