Skip to content

Commit a17b350

Browse files
committed
Add a flag for recommended suggestions of the spell checker
Bug: 5356130 Change-Id: I8361a2750670dadd514d02dd24bf492ce42ff8fc
1 parent ca50b44 commit a17b350

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

api/current.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24782,6 +24782,7 @@ package android.view.textservice {
2478224782
method public void setCookieAndSequence(int, int);
2478324783
method public void writeToParcel(android.os.Parcel, int);
2478424784
field public static final android.os.Parcelable.Creator CREATOR;
24785+
field public static final int RESULT_ATTR_HAS_RECOMMENDED_SUGGESTIONS = 4; // 0x4
2478524786
field public static final int RESULT_ATTR_IN_THE_DICTIONARY = 1; // 0x1
2478624787
field public static final int RESULT_ATTR_LOOKS_LIKE_TYPO = 2; // 0x2
2478724788
}

core/java/android/view/textservice/SuggestionsInfo.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ public final class SuggestionsInfo implements Parcelable {
3939
* word looks like a typo.
4040
*/
4141
public static final int RESULT_ATTR_LOOKS_LIKE_TYPO = 0x0002;
42+
/**
43+
* Flag of the attributes of the suggestions that can be obtained by
44+
* {@link #getSuggestionsAttributes}: this tells that the text service thinks
45+
* the result suggestions include highly recommended ones.
46+
*/
47+
public static final int RESULT_ATTR_HAS_RECOMMENDED_SUGGESTIONS = 0x0004;
4248
private final int mSuggestionsAttributes;
4349
private final String[] mSuggestions;
4450
private final boolean mSuggestionsAvailable;

0 commit comments

Comments
 (0)