diff options
Diffstat (limited to 'java/src/com/android/inputmethod')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Suggest.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index d12d81a28..f4f82f9c5 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -238,11 +238,9 @@ public class Suggest { } if (whitelistedWord != null) { - final SuggestedWordInfo whitelistSuggestion; - whitelistSuggestion = new SuggestedWordInfo(whitelistedWord, + suggestionsSet.add(new SuggestedWordInfo(whitelistedWord, SuggestedWordInfo.MAX_SCORE, SuggestedWordInfo.KIND_WHITELIST, - Dictionary.TYPE_WHITELIST); - suggestionsSet.add(whitelistSuggestion); + Dictionary.TYPE_WHITELIST)); } final ArrayList<SuggestedWordInfo> suggestionsContainer = |