diff options
author | 2012-03-13 16:36:21 +0900 | |
---|---|---|
committer | 2012-03-13 19:07:42 +0900 | |
commit | 674ffcdf9361b3c90cc39daf02f3217fb6d870de (patch) | |
tree | 19bc680ceb3dc8b63d2bb81a6831974a4db2f351 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | d6662ecd306e1084af81c79df61cf52ef6da75ea (diff) | |
download | latinime-674ffcdf9361b3c90cc39daf02f3217fb6d870de.tar.gz latinime-674ffcdf9361b3c90cc39daf02f3217fb6d870de.tar.xz latinime-674ffcdf9361b3c90cc39daf02f3217fb6d870de.zip |
Make an add into a set.
This method now only sets words, so it should be named set.
The functionality is identical since there are no more places
where the list is reused.
This will also allow to make the list final in an upcoming change.
Change-Id: I25b0c7d7f13c3fa5d89806f01f48f1026769603f
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 39cbfa7a0..a7985c37d 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -927,7 +927,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar SuggestedWords.Builder.getFromApplicationSpecifiedCompletions( applicationSpecifiedCompletions); SuggestedWords.Builder builder = new SuggestedWords.Builder() - .addWords(applicationSuggestedWords) + .setWords(applicationSuggestedWords) .setTypedWordValid(false) .setHasMinimalSuggestion(false); // When in fullscreen mode, show completions generated by the application @@ -1787,7 +1787,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar SuggestedWords.Builder.getTypedWordAndPreviousSuggestions( typedWord, previousSuggestions); final SuggestedWords.Builder obsoleteSuggestionsBuilder = new SuggestedWords.Builder() - .addWords(typedWordAndPreviousSuggestions) + .setWords(typedWordAndPreviousSuggestions) .setTypedWordValid(false) .setHasMinimalSuggestion(false); |