diff options
author | 2012-03-14 15:59:04 +0900 | |
---|---|---|
committer | 2012-03-14 15:59:04 +0900 | |
commit | bdf6d1b18b3cebdde5f39d10066ead34be161baf (patch) | |
tree | fb68db44f68765de5f71c4110af70736615eaffc /java/src/com/android/inputmethod/latin/Suggest.java | |
parent | eda7d8af60e28ff5f949a267ede8f1a553f8a067 (diff) | |
download | latinime-bdf6d1b18b3cebdde5f39d10066ead34be161baf.tar.gz latinime-bdf6d1b18b3cebdde5f39d10066ead34be161baf.tar.xz latinime-bdf6d1b18b3cebdde5f39d10066ead34be161baf.zip |
Remove a useless method
Change-Id: I208dd2e725e37c2fb3cd51fe48194679e5912f6b
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Suggest.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Suggest.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index fea1b83bb..7ac00a34e 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -269,10 +269,9 @@ public class Suggest implements Dictionary.WordCallback { StringUtils.removeDupes(mSuggestions); - return SuggestedWords.getSuggestedWords( - SuggestedWords.getFromCharSequenceList(mSuggestions), + return new SuggestedWords(SuggestedWords.getFromCharSequenceList(mSuggestions), false /* typedWordValid */, - false /* hasMinimalSuggestion */, + false /* hasAutoCorrectionCandidate */, false /* allowsToBeAutoCorrected */, false /* isPunctuationSuggestions */, false /* shouldBlockAutoCorrectionBySafetyNet */); @@ -445,9 +444,9 @@ public class Suggest implements Dictionary.WordCallback { } else { shouldBlockAutoCorrectionBySatefyNet = false; } - return SuggestedWords.getSuggestedWords(scoreInfoList, + return new SuggestedWords(scoreInfoList, !allowsToBeAutoCorrected /* typedWordValid */, - autoCorrectionAvailable /* hasMinimalSuggestion */, + autoCorrectionAvailable /* hasAutoCorrectionCandidate */, allowsToBeAutoCorrected /* allowsToBeAutoCorrected */, false /* isPunctuationSuggestions */, shouldBlockAutoCorrectionBySatefyNet); |