Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef20b233 authored by Qingqing Deng's avatar Qingqing Deng
Browse files

Annotate SuggestionSpan.getUnderlineColor

-- Annotate return value with @ColorInt

Bug: 122517884
Test: atest CtsTextTestCases:android.text.style.cts.SuggestionSpanTest
Change-Id: I3bd7449e2d17cdfa06f3b62358ec1bba667a1fc3
parent 59a7bc04
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package android.text.style;

import android.annotation.ColorInt;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.UnsupportedAppUsage;
@@ -370,6 +371,7 @@ public class SuggestionSpan extends CharacterStyle implements ParcelableSpan {
    /**
     * @return The color of the underline for that span, or 0 if there is no underline
     */
    @ColorInt
    public int getUnderlineColor() {
        // The order here should match what is used in updateDrawState
        final boolean misspelled = (mFlags & FLAG_MISSPELLED) != 0;