diff options
author | 2012-03-14 18:12:12 +0900 | |
---|---|---|
committer | 2012-03-14 18:12:12 +0900 | |
commit | f985efe39c98d03125884b140d7c64bb28914018 (patch) | |
tree | 6afaca39eb1a6328314c17984e71527218af5af4 /java/src/com/android/inputmethod/latin/Suggest.java | |
parent | bdf6d1b18b3cebdde5f39d10066ead34be161baf (diff) | |
download | latinime-f985efe39c98d03125884b140d7c64bb28914018.tar.gz latinime-f985efe39c98d03125884b140d7c64bb28914018.tar.xz latinime-f985efe39c98d03125884b140d7c64bb28914018.zip |
Remove a useless parameter
Change-Id: I03005240238fb004c20b2df0d836796e2e8b307f
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 7ac00a34e..b93626caa 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -273,8 +273,7 @@ public class Suggest implements Dictionary.WordCallback { false /* typedWordValid */, false /* hasAutoCorrectionCandidate */, false /* allowsToBeAutoCorrected */, - false /* isPunctuationSuggestions */, - false /* shouldBlockAutoCorrectionBySafetyNet */); + false /* isPunctuationSuggestions */); } // TODO: cleanup dictionaries looking up and suggestions building with SuggestedWords.Builder @@ -446,10 +445,10 @@ public class Suggest implements Dictionary.WordCallback { } return new SuggestedWords(scoreInfoList, !allowsToBeAutoCorrected /* typedWordValid */, - autoCorrectionAvailable /* hasAutoCorrectionCandidate */, + autoCorrectionAvailable & !shouldBlockAutoCorrectionBySatefyNet + /* hasAutoCorrectionCandidate */, allowsToBeAutoCorrected /* allowsToBeAutoCorrected */, - false /* isPunctuationSuggestions */, - shouldBlockAutoCorrectionBySatefyNet); + false /* isPunctuationSuggestions */); } @Override |