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

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

Fixed bug 2795971 IME doesn't appear on touching a text field

Refactoring in CL 55138 added an extra condition to display the IME.

Change-Id: I2a4cc83bb39bd2c87ad3bd75ef234cdbdfdad74f
parent 3fef4f5a
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -6644,11 +6644,13 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
                    final int newSelStart = Selection.getSelectionStart(mText);
                    final int newSelEnd = Selection.getSelectionEnd(mText);

                    CommitSelectionReceiver csr = null;
                    if (newSelStart != oldSelStart || newSelEnd != oldSelEnd) {
                        CommitSelectionReceiver csr = new CommitSelectionReceiver(
                                oldSelStart, oldSelEnd, newSelStart, newSelEnd);
                        handled = imm.showSoftInput(this, 0, csr);
                        csr = new CommitSelectionReceiver(oldSelStart, oldSelEnd,
                                newSelStart, newSelEnd);
                    }

                    handled = imm.showSoftInput(this, 0, csr) && (csr != null);
                }
            }