diff options
author | 2011-10-03 01:32:30 -0700 | |
---|---|---|
committer | 2011-10-03 01:32:30 -0700 | |
commit | 6b64a0fedc23d801696312909d57674f5cc43d56 (patch) | |
tree | 45fcbf3887f1fe745bde36b0f6322faa1a3b3144 /java/src | |
parent | 21ffb08a73d3686abfa43f8e4eeae1afc09284d7 (diff) | |
parent | cd95a365586b2b5f9a3639b72a2befdac7ada8a4 (diff) | |
download | latinime-6b64a0fedc23d801696312909d57674f5cc43d56.tar.gz latinime-6b64a0fedc23d801696312909d57674f5cc43d56.tar.xz latinime-6b64a0fedc23d801696312909d57674f5cc43d56.zip |
Merge "Fix a bug where moving the cursor would not reset selection"
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 83b79f74c..224618ecc 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -895,20 +895,16 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar } mComposingStringBuilder.setLength(0); mHasUncommittedTypedChars = false; - if (isCursorTouchingWord()) { - mHandler.cancelUpdateBigramPredictions(); - mHandler.postUpdateSuggestions(); - } else { - setPunctuationSuggestions(); - } TextEntryState.reset(); + updateSuggestions(); final InputConnection ic = getCurrentInputConnection(); if (ic != null) { ic.finishComposingText(); } mVoiceProxy.setVoiceInputHighlighted(false); - } else if (!mHasUncommittedTypedChars && TextEntryState.isAcceptedDefault()) { + } else if (!mHasUncommittedTypedChars) { TextEntryState.reset(); + updateSuggestions(); } mJustAddedMagicSpace = false; // The user moved the cursor. mJustReplacedDoubleSpace = false; @@ -1654,6 +1650,10 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar return; } + mHandler.cancelUpdateSuggestions(); + mHandler.cancelUpdateOldSuggestions(); + mHandler.cancelUpdateBigramPredictions(); + if (!mHasUncommittedTypedChars) { setPunctuationSuggestions(); return; |