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/SuggestedWords.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/SuggestedWords.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/SuggestedWords.java | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/java/src/com/android/inputmethod/latin/SuggestedWords.java b/java/src/com/android/inputmethod/latin/SuggestedWords.java index bc89941a1..03ff5de7b 100644 --- a/java/src/com/android/inputmethod/latin/SuggestedWords.java +++ b/java/src/com/android/inputmethod/latin/SuggestedWords.java @@ -80,7 +80,7 @@ public class SuggestedWords { private final boolean mTypedWordValid; private final boolean mHasMinimalSuggestion; private final boolean mIsPunctuationSuggestions; - private boolean mShouldBlockAutoCorrectionBySafetyNet; + private final boolean mShouldBlockAutoCorrectionBySafetyNet; private final boolean mAllowsToBeAutoCorrected; private final List<SuggestedWordInfo> mSuggestedWordInfoList; @@ -88,12 +88,14 @@ public class SuggestedWords { final boolean typedWordValid, final boolean hasMinimalSuggestion, final boolean allowsToBeAutoCorrected, - final boolean isPunctuationSuggestions) { + final boolean isPunctuationSuggestions, + final boolean shouldBlockAutoCorrectionBySafetyNet) { mSuggestedWordInfoList = suggestedWordInfoList; mTypedWordValid = typedWordValid; mHasMinimalSuggestion = hasMinimalSuggestion; mAllowsToBeAutoCorrected = allowsToBeAutoCorrected; mIsPunctuationSuggestions = isPunctuationSuggestions; + mShouldBlockAutoCorrectionBySafetyNet = shouldBlockAutoCorrectionBySafetyNet; } public static ArrayList<SuggestedWordInfo> getFromCharSequenceList( @@ -114,11 +116,6 @@ public class SuggestedWords { return result; } - public Builder setShouldBlockAutoCorrectionBySafetyNet() { - mShouldBlockAutoCorrectionBySafetyNet = true; - return this; - } - // Should get rid of the first one (what the user typed previously) from suggestions // and replace it with what the user currently typed. public static ArrayList<SuggestedWordInfo> getTypedWordAndPreviousSuggestions( |