diff options
author | 2011-10-03 01:33:23 -0700 | |
---|---|---|
committer | 2011-10-03 01:33:23 -0700 | |
commit | a2a4dec8f14f9ad68b84b592aac9c3230f22ca83 (patch) | |
tree | 45fcbf3887f1fe745bde36b0f6322faa1a3b3144 /java/src | |
parent | 782b05fa7444bacf85c56172078327491b625e60 (diff) | |
parent | 6b64a0fedc23d801696312909d57674f5cc43d56 (diff) | |
download | latinime-a2a4dec8f14f9ad68b84b592aac9c3230f22ca83.tar.gz latinime-a2a4dec8f14f9ad68b84b592aac9c3230f22ca83.tar.xz latinime-a2a4dec8f14f9ad68b84b592aac9c3230f22ca83.zip |
am 6b64a0fe: Merge "Fix a bug where moving the cursor would not reset selection"
* commit '6b64a0fedc23d801696312909d57674f5cc43d56':
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; |