From 0f0a3945ef98b3c30839ab7b746bf8cc55b78d33 Mon Sep 17 00:00:00 2001 From: satok Date: Wed, 26 Oct 2011 15:04:44 +0900 Subject: [PATCH] Make FLAG_AUTO_CORRECTION public Bug: 5440299 Change-Id: Ia82745e793be741c1558ce15b189b63872107ddb --- api/current.txt | 1 + core/java/android/text/style/SuggestionSpan.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/api/current.txt b/api/current.txt index b30f7a6d76a1d..0e32d88f878ca 100644 --- a/api/current.txt +++ b/api/current.txt @@ -21026,6 +21026,7 @@ package android.text.style { method public void writeToParcel(android.os.Parcel, int); field public static final java.lang.String ACTION_SUGGESTION_PICKED = "android.text.style.SUGGESTION_PICKED"; field public static final android.os.Parcelable.Creator CREATOR; + field public static final int FLAG_AUTO_CORRECTION = 4; // 0x4 field public static final int FLAG_EASY_CORRECT = 1; // 0x1 field public static final int FLAG_MISSPELLED = 2; // 0x2 field public static final int SUGGESTIONS_MAX_SIZE = 5; // 0x5 diff --git a/core/java/android/text/style/SuggestionSpan.java b/core/java/android/text/style/SuggestionSpan.java index 6e950165733a9..ed2af10bcf030 100644 --- a/core/java/android/text/style/SuggestionSpan.java +++ b/core/java/android/text/style/SuggestionSpan.java @@ -60,7 +60,6 @@ public class SuggestionSpan extends CharacterStyle implements ParcelableSpan { * Sets this flag if the auto correction is about to be applied to a word/text * that the user is typing/composing. This type of suggestion is rendered differently * to indicate the auto correction is happening. - * @hide */ public static final int FLAG_AUTO_CORRECTION = 0x0004;