aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/SuggestedWords.java
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-12-09 10:30:17 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-12-09 10:30:17 +0000
commitcc45f04cdc2cbc2f8c7d0010777639d6cd30d096 (patch)
tree4c5ff7373f7c9b775879017b1a3927bbd97d5b4a /java/src/com/android/inputmethod/latin/SuggestedWords.java
parent29cc1d1981a4e79cac9a326a0e571ed3906f67df (diff)
parent52e92f812b43fca77f0555965a940faf030bc55b (diff)
downloadlatinime-cc45f04cdc2cbc2f8c7d0010777639d6cd30d096.tar.gz
latinime-cc45f04cdc2cbc2f8c7d0010777639d6cd30d096.tar.xz
latinime-cc45f04cdc2cbc2f8c7d0010777639d6cd30d096.zip
am 52e92f81: Merge "Quit auto-correct explicit accented letters to base letters."
* commit '52e92f812b43fca77f0555965a940faf030bc55b': Quit auto-correct explicit accented letters to base letters.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/SuggestedWords.java')
-rw-r--r--java/src/com/android/inputmethod/latin/SuggestedWords.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/SuggestedWords.java b/java/src/com/android/inputmethod/latin/SuggestedWords.java
index 30dd51aed..df8db0cd2 100644
--- a/java/src/com/android/inputmethod/latin/SuggestedWords.java
+++ b/java/src/com/android/inputmethod/latin/SuggestedWords.java
@@ -252,6 +252,7 @@ public class SuggestedWords {
public static final int KIND_FLAG_POSSIBLY_OFFENSIVE = 0x80000000;
public static final int KIND_FLAG_EXACT_MATCH = 0x40000000;
public static final int KIND_FLAG_EXACT_MATCH_WITH_INTENTIONAL_OMISSION = 0x20000000;
+ public static final int KIND_FLAG_APPROPRIATE_FOR_AUTO_CORRECTION = 0x10000000;
public final String mWord;
// The completion info from the application. Null for suggestions that don't come from
@@ -333,6 +334,10 @@ public class SuggestedWords {
return (mKindAndFlags & KIND_FLAG_EXACT_MATCH_WITH_INTENTIONAL_OMISSION) != 0;
}
+ public boolean isAprapreateForAutoCorrection() {
+ return (mKindAndFlags & KIND_FLAG_APPROPRIATE_FOR_AUTO_CORRECTION) != 0;
+ }
+
public void setDebugString(final String str) {
if (null == str) throw new NullPointerException("Debug info is null");
mDebugString = str;