diff options
author | 2012-03-13 20:30:16 -0700 | |
---|---|---|
committer | 2012-03-13 20:30:16 -0700 | |
commit | 7b2d6a8f98b197b6ff9e7aefd5efef35fe1695af (patch) | |
tree | 3657d0ac03d5460a502d428e1d036cae3c94c189 /java/src/com/android/inputmethod/latin/Suggest.java | |
parent | 6338b9f2c6a001f4a0fe9ee97779c1c83e47d85a (diff) | |
parent | e3afb7d19276676d28ca018e5f156892e137a96e (diff) | |
download | latinime-7b2d6a8f98b197b6ff9e7aefd5efef35fe1695af.tar.gz latinime-7b2d6a8f98b197b6ff9e7aefd5efef35fe1695af.tar.xz latinime-7b2d6a8f98b197b6ff9e7aefd5efef35fe1695af.zip |
Merge "Make the Builder fully immutable at last"
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 4dee4f3b4..b02c9738e 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -274,7 +274,8 @@ public class Suggest implements Dictionary.WordCallback { false /* typedWordValid */, false /* hasMinimalSuggestion */, false /* allowsToBeAutoCorrected */, - false /* isPunctuationSuggestions */); + false /* isPunctuationSuggestions */, + false /* shouldBlockAutoCorrectionBySafetyNet */); } // TODO: cleanup dictionaries looking up and suggestions building with SuggestedWords.Builder @@ -449,10 +450,8 @@ public class Suggest implements Dictionary.WordCallback { !allowsToBeAutoCorrected /* typedWordValid */, autoCorrectionAvailable /* hasMinimalSuggestion */, allowsToBeAutoCorrected /* allowsToBeAutoCorrected */, - false /* isPunctuationSuggestions */); - if (shouldBlockAutoCorrectionBySatefyNet) { - builder.setShouldBlockAutoCorrectionBySafetyNet(); - } + false /* isPunctuationSuggestions */, + shouldBlockAutoCorrectionBySatefyNet); return builder; } |