aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-06-28 13:53:36 +0900
committerJean Chalard <jchalard@google.com>2012-06-28 19:13:16 +0900
commit4847a27f74964a8f04bb40c8520d72096f69f7e7 (patch)
tree7b7869b389c7a4ff7f3bd9d98457adae3d840148 /java/src/com/android/inputmethod
parented83d4b14366b9799bf94c3f3486dc14ebd15d0f (diff)
downloadlatinime-4847a27f74964a8f04bb40c8520d72096f69f7e7.tar.gz
latinime-4847a27f74964a8f04bb40c8520d72096f69f7e7.tar.xz
latinime-4847a27f74964a8f04bb40c8520d72096f69f7e7.zip
Cleanup (A7)
Change-Id: Iba97e0062b702c005ab3ff9ce59f181d19ab7c98
Diffstat (limited to 'java/src/com/android/inputmethod')
-rw-r--r--java/src/com/android/inputmethod/latin/Suggest.java6
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 =