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

Commit 7c894609 authored by Haoyu Zhang's avatar Haoyu Zhang
Browse files

Add NonNull annotaion for LineHeightSpan.Standard

Bug: 126699237
Test: atest LineHeightSpan_StandardTest
Change-Id: I527f622077e0899e84ed28dc91f481e5195d735d
parent 6ce9003e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -47115,7 +47115,7 @@ package android.text.style {
  public static class LineHeightSpan.Standard implements android.text.style.LineHeightSpan android.text.ParcelableSpan {
  public static class LineHeightSpan.Standard implements android.text.style.LineHeightSpan android.text.ParcelableSpan {
    ctor public LineHeightSpan.Standard(@Px @IntRange(from=1) int);
    ctor public LineHeightSpan.Standard(@Px @IntRange(from=1) int);
    ctor public LineHeightSpan.Standard(android.os.Parcel);
    ctor public LineHeightSpan.Standard(@NonNull android.os.Parcel);
    method public void chooseHeight(@NonNull CharSequence, int, int, int, int, @NonNull android.graphics.Paint.FontMetricsInt);
    method public void chooseHeight(@NonNull CharSequence, int, int, int, int, @NonNull android.graphics.Paint.FontMetricsInt);
    method public int describeContents();
    method public int describeContents();
    method @Px public int getHeight();
    method @Px public int getHeight();
+1 −1
Original line number Original line Diff line number Diff line
@@ -88,7 +88,7 @@ public interface LineHeightSpan extends ParagraphStyle, WrapTogetherSpan {
        /**
        /**
         * Constructor called from {@link TextUtils} to restore the span from a parcel
         * Constructor called from {@link TextUtils} to restore the span from a parcel
         */
         */
        public Standard(Parcel src) {
        public Standard(@NonNull Parcel src) {
            mHeight = src.readInt();
            mHeight = src.readInt();
        }
        }