aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-09-29 00:19:17 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-09-29 00:19:17 -0700
commit4866758a98fbf38bedebf65f9ea4993464627ce0 (patch)
tree0f930241ba332d3077c7135ca95fdd7135a6ec03 /java/src
parent2087cf508a399f930c21a9cbeeac735e317a58d8 (diff)
parent074cda4d266b5d034d4348961c9183e32b16af5a (diff)
downloadlatinime-4866758a98fbf38bedebf65f9ea4993464627ce0.tar.gz
latinime-4866758a98fbf38bedebf65f9ea4993464627ce0.tar.xz
latinime-4866758a98fbf38bedebf65f9ea4993464627ce0.zip
Merge "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.java10
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);
}
}