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

Commit 187e683a authored by Jean Chalard's avatar Jean Chalard Committed by Android (Google) Code Review
Browse files

Merge "Fix a bug with some text fields" into jb-mr1.1-dev

parents e4958d5c 00c0010c
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -145,7 +145,8 @@ public final class RichInputConnection {
        mCurrentCursorPosition = newCursorPosition;
        mCurrentCursorPosition = newCursorPosition;
        mComposingText.setLength(0);
        mComposingText.setLength(0);
        mCommittedTextBeforeComposingText.setLength(0);
        mCommittedTextBeforeComposingText.setLength(0);
        mCommittedTextBeforeComposingText.append(getTextBeforeCursor(DEFAULT_TEXT_CACHE_SIZE, 0));
        final CharSequence textBeforeCursor = getTextBeforeCursor(DEFAULT_TEXT_CACHE_SIZE, 0);
        if (null != textBeforeCursor) mCommittedTextBeforeComposingText.append(textBeforeCursor);
        mCharAfterTheCursor = getTextAfterCursor(1, 0);
        mCharAfterTheCursor = getTextAfterCursor(1, 0);
        if (null != mIC) {
        if (null != mIC) {
            mIC.finishComposingText();
            mIC.finishComposingText();