diff options
author | 2012-07-09 16:34:49 +0900 | |
---|---|---|
committer | 2012-07-10 18:57:12 +0900 | |
commit | 82009901eaa1fd0da95b25c900f8ff12fda9e679 (patch) | |
tree | 4bcaceffa6a14b6e96bf2bd32fa754d71658008f /java/src/com/android/inputmethod/latin/spellcheck | |
parent | 2a37fb9d30848aee42757546e8478cb7a9e45bc6 (diff) | |
download | latinime-82009901eaa1fd0da95b25c900f8ff12fda9e679.tar.gz latinime-82009901eaa1fd0da95b25c900f8ff12fda9e679.tar.xz latinime-82009901eaa1fd0da95b25c900f8ff12fda9e679.zip |
Add a consolidated method to the Dictionary interface (A85)
Change-Id: I5d79021e69cc738e3013e31764ab0a59e15decdf
Diffstat (limited to 'java/src/com/android/inputmethod/latin/spellcheck')
-rw-r--r-- | java/src/com/android/inputmethod/latin/spellcheck/AndroidWordLevelSpellCheckerSession.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/spellcheck/AndroidWordLevelSpellCheckerSession.java b/java/src/com/android/inputmethod/latin/spellcheck/AndroidWordLevelSpellCheckerSession.java index c94e0081c..0171dc06d 100644 --- a/java/src/com/android/inputmethod/latin/spellcheck/AndroidWordLevelSpellCheckerSession.java +++ b/java/src/com/android/inputmethod/latin/spellcheck/AndroidWordLevelSpellCheckerSession.java @@ -240,8 +240,9 @@ public abstract class AndroidWordLevelSpellCheckerSession extends Session { if (null == dictInfo) { return AndroidSpellCheckerService.getNotInDictEmptySuggestions(); } - final ArrayList<SuggestedWordInfo> suggestions = dictInfo.mDictionary.getWords( - composer, prevWord, dictInfo.mProximityInfo); + final ArrayList<SuggestedWordInfo> suggestions = + dictInfo.mDictionary.getSuggestions(composer, prevWord, + dictInfo.mProximityInfo); for (final SuggestedWordInfo suggestion : suggestions) { final String suggestionStr = suggestion.mWord.toString(); suggestionsGatherer.addWord(suggestionStr.toCharArray(), null, 0, |