summaryrefslogtreecommitdiffstats
path: root/core/java/android/text/TextUtils.java
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-03-09 10:08:47 +0900
committersatok <satok@google.com>2011-03-16 14:44:37 +0900
commitadb435835fb9a5f2bb74d29930b239dde18504a7 (patch)
tree7dfcbef60811268cfde7606bd721ddd75c0b6912 /core/java/android/text/TextUtils.java
parentfd865d0fb5f5b38a41a9196ee54357715bd32254 (diff)
downloadframeworks_base-adb435835fb9a5f2bb74d29930b239dde18504a7.zip
frameworks_base-adb435835fb9a5f2bb74d29930b239dde18504a7.tar.gz
frameworks_base-adb435835fb9a5f2bb74d29930b239dde18504a7.tar.bz2
Add CorrectionSpan and APIs to pass a secure CorrectionSpan to TextView
- CorrectionSpan is a span which has suggestions made by IME. This has a function to change the current IME to other IME specified in this span. For security reasons, only the current IME is allowed to use this function through InputConnection. (IME token is used for checking the validity of it.). - CorrectionSpan stores following information: flags, subtype Id, InputMethodInfo Id, suggests, locale, original string Change-Id: Id3abc9ea4d11753cdc4f483a2bb3128f49ba198a
Diffstat (limited to 'core/java/android/text/TextUtils.java')
-rw-r--r--core/java/android/text/TextUtils.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/text/TextUtils.java b/core/java/android/text/TextUtils.java
index 30a1f48..ee6342a 100644
--- a/core/java/android/text/TextUtils.java
+++ b/core/java/android/text/TextUtils.java
@@ -565,6 +565,8 @@ public class TextUtils {
public static final int TEXT_APPEARANCE_SPAN = 17;
/** @hide */
public static final int ANNOTATION = 18;
+ /** @hide */
+ public static final int CORRECTION_SPAN = 19;
/**
* Flatten a CharSequence and whatever styles can be copied across processes