aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/SuggestedWords.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-03-09 17:53:20 +0900
committerJean Chalard <jchalard@google.com>2012-03-09 18:36:49 +0900
commit67af2a24157ead953607bdfd585fba3a7e6bf50c (patch)
tree1db5b050c552148c58dc55f9246d929c1e68888d /java/src/com/android/inputmethod/latin/SuggestedWords.java
parentdf9fce5df1bacdffb39c7926bdda4b205f186998 (diff)
downloadlatinime-67af2a24157ead953607bdfd585fba3a7e6bf50c.tar.gz
latinime-67af2a24157ead953607bdfd585fba3a7e6bf50c.tar.xz
latinime-67af2a24157ead953607bdfd585fba3a7e6bf50c.zip
Export some more logic out of Latin IME
Change-Id: Ib264533a05e9e09347bf254789e6ab5beec92400
Diffstat (limited to 'java/src/com/android/inputmethod/latin/SuggestedWords.java')
-rw-r--r--java/src/com/android/inputmethod/latin/SuggestedWords.java10
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