diff options
author | 2011-09-29 15:58:58 +0900 | |
---|---|---|
committer | 2011-09-29 16:12:11 +0900 | |
commit | 074cda4d266b5d034d4348961c9183e32b16af5a (patch) | |
tree | 70343b6e6a399308b3e5493314dfb7a308c8ae87 /java/src | |
parent | 55072fefe601a08511df1b6387d918ca5831d2c7 (diff) | |
download | latinime-074cda4d266b5d034d4348961c9183e32b16af5a.tar.gz latinime-074cda4d266b5d034d4348961c9183e32b16af5a.tar.xz latinime-074cda4d266b5d034d4348961c9183e32b16af5a.zip |
Update suggestions when user presses the backspace even when there is not two or more suggestions
Bug: 5384445
Change-Id: I419999da8f5745ac114d0173beeadcb365a8c3ac
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); } } |