diff options
Diffstat (limited to 'java/src/com/android/inputmethod/latin/SuggestedWords.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/SuggestedWords.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/SuggestedWords.java b/java/src/com/android/inputmethod/latin/SuggestedWords.java index aad975e46..c92c72004 100644 --- a/java/src/com/android/inputmethod/latin/SuggestedWords.java +++ b/java/src/com/android/inputmethod/latin/SuggestedWords.java @@ -90,6 +90,7 @@ public class SuggestedWords { private boolean mHasMinimalSuggestion; private boolean mIsPunctuationSuggestions; private boolean mShouldBlockAutoCorrectionBySafetyNet; + private boolean mAllowsToBeAutoCorrected; private List<SuggestedWordInfo> mSuggestedWordInfoList = new ArrayList<SuggestedWordInfo>(); @@ -159,6 +160,11 @@ public class SuggestedWords { return this; } + public Builder setAllowsToBeAutoCorrected(final boolean allowsToBeAutoCorrected) { + mAllowsToBeAutoCorrected = allowsToBeAutoCorrected; + 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 Builder addTypedWordAndPreviousSuggestions(CharSequence typedWord, @@ -200,6 +206,10 @@ public class SuggestedWords { return mTypedWordValid; } + public boolean allowsToBeAutoCorrected() { + return mAllowsToBeAutoCorrected; + } + @Override public String toString() { // Pretty-print method to help debug |