diff options
author | 2012-08-28 02:01:13 -0700 | |
---|---|---|
committer | 2012-08-28 02:01:13 -0700 | |
commit | 4a02e84f76bdad417792d527fd323b61534d8c8e (patch) | |
tree | 875b899143b0814e9af3fc5c453cdaf8315f811e /java | |
parent | 2133ca2759fcd89bbc7292757c17dfd3db760c1a (diff) | |
parent | 43d3f0fa3bd804e9795d31025b78a4696d46f0a2 (diff) | |
download | latinime-4a02e84f76bdad417792d527fd323b61534d8c8e.tar.gz latinime-4a02e84f76bdad417792d527fd323b61534d8c8e.tar.xz latinime-4a02e84f76bdad417792d527fd323b61534d8c8e.zip |
am 43d3f0fa: Merge "Auto-correct after smileys and gestures." into jb-mr1-dev
* commit '43d3f0fa3bd804e9795d31025b78a4696d46f0a2':
Auto-correct after smileys and gestures.
Diffstat (limited to 'java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index df200cd0e..83a306818 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1351,7 +1351,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen @Override public void onTextInput(CharSequence rawText) { mConnection.beginBatchEdit(); - commitTyped(LastComposedWord.NOT_A_SEPARATOR); + if (mWordComposer.isComposingWord()) { + commitCurrentAutoCorrection(LastComposedWord.NOT_A_SEPARATOR); + } mHandler.postUpdateSuggestionStrip(); final CharSequence text = specificTldProcessingOnTextInput(rawText); if (SPACE_STATE_PHANTOM == mSpaceState) { @@ -1370,7 +1372,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen public void onStartBatchInput() { mConnection.beginBatchEdit(); if (mWordComposer.isComposingWord()) { - commitTyped(LastComposedWord.NOT_A_SEPARATOR); + commitCurrentAutoCorrection(LastComposedWord.NOT_A_SEPARATOR); mExpectingUpdateSelection = true; // TODO: Can we remove this? mSpaceState = SPACE_STATE_PHANTOM; |