diff options
author | 2012-01-16 23:23:46 -0800 | |
---|---|---|
committer | 2012-01-16 23:23:46 -0800 | |
commit | 0310c3f13d3e452a4cc56f3df2a8d4e0001d25ef (patch) | |
tree | 51f1aab7ae2fcfd08464c3611feaf48ab701b8f8 /java/src/com | |
parent | 2af901c64cfe51731937a4a987b8a9003014c362 (diff) | |
parent | d104a7aac8b0791341c71deb013d4e6adfc57e8a (diff) | |
download | latinime-0310c3f13d3e452a4cc56f3df2a8d4e0001d25ef.tar.gz latinime-0310c3f13d3e452a4cc56f3df2a8d4e0001d25ef.tar.xz latinime-0310c3f13d3e452a4cc56f3df2a8d4e0001d25ef.zip |
am d104a7aa: Merge "Fix a bug where words disappear on inserting separators"
* commit 'd104a7aac8b0791341c71deb013d4e6adfc57e8a':
Fix a bug where words disappear on inserting separators
Diffstat (limited to 'java/src/com')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 32e933064..f8fef8e92 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1414,7 +1414,9 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar if (mDeleteCount > DELETE_ACCELERATE_AT) { ic.deleteSurroundingText(1, 0); } - restartSuggestionsOnWordBeforeCursorIfAtEndOfWord(ic); + if (isSuggestionsRequested()) { + restartSuggestionsOnWordBeforeCursorIfAtEndOfWord(ic); + } } } } @@ -1706,6 +1708,10 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar // Check if we have a suggestion engine attached. if ((mSuggest == null || !isSuggestionsRequested()) && !mVoiceProxy.isVoiceInputHighlighted()) { + if (mWordComposer.isComposingWord()) { + Log.w(TAG, "Called updateSuggestions but suggestions were not requested!"); + mWordComposer.setAutoCorrection(mWordComposer.getTypedWord()); + } return; } |