aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-08-27 18:54:05 +0900
committerJean Chalard <jchalard@google.com>2012-08-27 18:54:05 +0900
commit6c70b9200340537d05ff8932d7cd990269eb486d (patch)
tree3504cc910be548aa94a12682df9d3d32f5e8311a /java/src/com/android/inputmethod
parent95c272596d92e67afd5610cf8311e2e82ae5dec2 (diff)
downloadlatinime-6c70b9200340537d05ff8932d7cd990269eb486d.tar.gz
latinime-6c70b9200340537d05ff8932d7cd990269eb486d.tar.xz
latinime-6c70b9200340537d05ff8932d7cd990269eb486d.zip
Auto-correct after smileys and gestures.
Bug: 6936790 Bug: 6965241 Change-Id: I1f61327eb5591960c280e425df9cd86b9c52f5d6
Diffstat (limited to 'java/src/com/android/inputmethod')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java6
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;