Skip to content

Commit 4a6d087

Browse files
satok16Android (Google) Code Review
authored andcommitted
Merge "Add a flag for recommended suggestions of the spell checker" into ics-mr1
2 parents f0fd595 + a17b350 commit 4a6d087

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
@@ -24785,6 +24785,7 @@ package android.view.textservice {
2478524785
method public void setCookieAndSequence(int, int);
2478624786
method public void writeToParcel(android.os.Parcel, int);
2478724787
field public static final android.os.Parcelable.Creator CREATOR;
24788+
field public static final int RESULT_ATTR_HAS_RECOMMENDED_SUGGESTIONS = 4; // 0x4
2478824789
field public static final int RESULT_ATTR_IN_THE_DICTIONARY = 1; // 0x1
2478924790
field public static final int RESULT_ATTR_LOOKS_LIKE_TYPO = 2; // 0x2
2479024791
}

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)