summaryrefslogtreecommitdiffstats
path: root/core/java/android/view/textservice
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-10-28 19:11:00 +0900
committersatok <satok@google.com>2011-10-28 20:51:14 +0900
commita17b3506234638ef257a6b751a97931dc347a21b (patch)
treed0c40019eee7b98489d63ccfb6cf0f5f71db5442 /core/java/android/view/textservice
parentca50b44e2f8a279a37c31dbf9571e12a1e429493 (diff)
downloadframeworks_base-a17b3506234638ef257a6b751a97931dc347a21b.zip
frameworks_base-a17b3506234638ef257a6b751a97931dc347a21b.tar.gz
frameworks_base-a17b3506234638ef257a6b751a97931dc347a21b.tar.bz2
Add a flag for recommended suggestions of the spell checker
Bug: 5356130 Change-Id: I8361a2750670dadd514d02dd24bf492ce42ff8fc
Diffstat (limited to 'core/java/android/view/textservice')
-rw-r--r--core/java/android/view/textservice/SuggestionsInfo.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/view/textservice/SuggestionsInfo.java b/core/java/android/view/textservice/SuggestionsInfo.java
index 62a06b9..ddd0361 100644
--- a/core/java/android/view/textservice/SuggestionsInfo.java
+++ b/core/java/android/view/textservice/SuggestionsInfo.java
@@ -39,6 +39,12 @@ public final class SuggestionsInfo implements Parcelable {
* word looks like a typo.
*/
public static final int RESULT_ATTR_LOOKS_LIKE_TYPO = 0x0002;
+ /**
+ * Flag of the attributes of the suggestions that can be obtained by
+ * {@link #getSuggestionsAttributes}: this tells that the text service thinks
+ * the result suggestions include highly recommended ones.
+ */
+ public static final int RESULT_ATTR_HAS_RECOMMENDED_SUGGESTIONS = 0x0004;
private final int mSuggestionsAttributes;
private final String[] mSuggestions;
private final boolean mSuggestionsAvailable;