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 c92c72004..9549c79a4 100644 --- a/java/src/com/android/inputmethod/latin/SuggestedWords.java +++ b/java/src/com/android/inputmethod/latin/SuggestedWords.java @@ -91,6 +91,7 @@ public class SuggestedWords { private boolean mIsPunctuationSuggestions; private boolean mShouldBlockAutoCorrectionBySafetyNet; private boolean mAllowsToBeAutoCorrected; + private boolean mHasAutoCorrection; private List<SuggestedWordInfo> mSuggestedWordInfoList = new ArrayList<SuggestedWordInfo>(); @@ -165,6 +166,11 @@ public class SuggestedWords { return this; } + public Builder setHasAutoCorrection(final boolean hasAutoCorrection) { + mHasAutoCorrection = hasAutoCorrection; + 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, @@ -210,6 +216,10 @@ public class SuggestedWords { return mAllowsToBeAutoCorrected; } + public boolean hasAutoCorrection() { + return mHasAutoCorrection; + } + @Override public String toString() { // Pretty-print method to help debug |