aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 5e1795a26..6c89fbae4 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1834,13 +1834,14 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
} else {
SuggestedWords previousSuggestions = mSuggestionsView.getSuggestions();
if (previousSuggestions == mSettingsValues.mSuggestPuncList) {
- if (builder.size() == 0) {
+ if (!mWordComposer.isComposingWord()) {
return;
}
previousSuggestions = SuggestedWords.EMPTY;
}
- builder.addTypedWordAndPreviousSuggestions(typedWord, previousSuggestions);
- showSuggestions(builder.build(), typedWord);
+ final SuggestedWords.Builder obsoleteSuggestionsBuilder = new SuggestedWords.Builder()
+ .addTypedWordAndPreviousSuggestions(typedWord, previousSuggestions);
+ showSuggestions(obsoleteSuggestionsBuilder.build(), typedWord);
}
}