Skip to content
Snippets Groups Projects
Commit 5dee6e69 authored by Jean Chalard's avatar Jean Chalard Committed by Android Git Automerger
Browse files

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

* commit '187e683a':
  Fix a bug with some text fields
parents d7dbaa9c 187e683a
No related branches found
No related tags found
No related merge requests found
...@@ -145,7 +145,8 @@ public final class RichInputConnection { ...@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment