From 3cdaa2488f146a883f1afa53ce5be5e71f9c3a52 Mon Sep 17 00:00:00 2001 From: qqd Date: Wed, 28 Nov 2018 18:15:51 -0800 Subject: [PATCH] Make getUnderlineColor public. Bug: 117521361 Test: atest CtsTextTestCases:android.text.style.cts.SuggestionSpanTest Change-Id: Iafc7fa65b495e5cc5e69809c94c15c947ceab9ca --- api/current.txt | 1 + core/java/android/text/style/SuggestionSpan.java | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/api/current.txt b/api/current.txt index 079539e3c5f49..112f777e24d34 100644 --- a/api/current.txt +++ b/api/current.txt @@ -45847,6 +45847,7 @@ package android.text.style { method public deprecated java.lang.String getLocale(); method public java.util.Locale getLocaleObject(); method public int getSpanTypeId(); + method public int getUnderlineColor(); method public java.lang.String[] getSuggestions(); method public void setFlags(int); method public void updateDrawState(android.text.TextPaint); diff --git a/core/java/android/text/style/SuggestionSpan.java b/core/java/android/text/style/SuggestionSpan.java index be47320b59bd6..433483f717fa9 100644 --- a/core/java/android/text/style/SuggestionSpan.java +++ b/core/java/android/text/style/SuggestionSpan.java @@ -369,10 +369,7 @@ public class SuggestionSpan extends CharacterStyle implements ParcelableSpan { /** * @return The color of the underline for that span, or 0 if there is no underline - * - * @hide */ - @UnsupportedAppUsage public int getUnderlineColor() { // The order here should match what is used in updateDrawState final boolean misspelled = (mFlags & FLAG_MISSPELLED) != 0;