diff options
author | 2011-09-29 00:20:41 -0700 | |
---|---|---|
committer | 2011-09-29 00:20:41 -0700 | |
commit | 070d7913a8747a0e469e7f2a0fac77b0b9ca07c4 (patch) | |
tree | 0f930241ba332d3077c7135ca95fdd7135a6ec03 /java/src | |
parent | 3c2deff5f0fea3d948a75877768e1f5393b09e4d (diff) | |
parent | 4866758a98fbf38bedebf65f9ea4993464627ce0 (diff) | |
download | latinime-070d7913a8747a0e469e7f2a0fac77b0b9ca07c4.tar.gz latinime-070d7913a8747a0e469e7f2a0fac77b0b9ca07c4.tar.xz latinime-070d7913a8747a0e469e7f2a0fac77b0b9ca07c4.zip |
am 4866758a: Merge "Update suggestions when user presses the backspace even when there is not two or more suggestions"
* commit '4866758a98fbf38bedebf65f9ea4993464627ce0':
Update suggestions when user presses the backspace even when there is not two or more suggestions
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 48a1f8bd7..cf1cb8f25 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1661,9 +1661,13 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar builder.setTypedWordValid(typedWordValid).setHasMinimalSuggestion( autoCorrectionAvailable); } else { - final SuggestedWords previousSuggestions = mSuggestionsView.getSuggestions(); - if (previousSuggestions == mSettingsValues.mSuggestPuncList) - return; + SuggestedWords previousSuggestions = mSuggestionsView.getSuggestions(); + if (previousSuggestions == mSettingsValues.mSuggestPuncList) { + if (builder.size() == 0) { + return; + } + previousSuggestions = SuggestedWords.EMPTY; + } builder.addTypedWordAndPreviousSuggestions(typedWord, previousSuggestions); } } |