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

Commit a840c481 authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz Committed by Android (Google) Code Review
Browse files

Merge "[ProgressStyle] Use IntRange annotation for Segment and Point" into main

parents bc4584bc 65874ee5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7002,7 +7002,7 @@ package android.app {
  }
  public static final class Notification.ProgressStyle.Point {
    ctor public Notification.ProgressStyle.Point(int);
    ctor public Notification.ProgressStyle.Point(@IntRange(from=1) int);
    method @ColorInt public int getColor();
    method public int getId();
    method public int getPosition();
@@ -7011,7 +7011,7 @@ package android.app {
  }
  public static final class Notification.ProgressStyle.Segment {
    ctor public Notification.ProgressStyle.Segment(int);
    ctor public Notification.ProgressStyle.Segment(@IntRange(from=1) int);
    method @ColorInt public int getColor();
    method public int getId();
    method public int getLength();
+3 −2
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ import android.annotation.DrawableRes;
import android.annotation.FlaggedApi;
import android.annotation.IdRes;
import android.annotation.IntDef;
import android.annotation.IntRange;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.RequiresPermission;
@@ -12270,7 +12271,7 @@ public class Notification implements Parcelable
             * @param length
             * See {@link #getLength}
             */
            public Segment(int length) {
            public Segment(@IntRange(from = 1) int length) {
                mLength = length;
            }
@@ -12356,7 +12357,7 @@ public class Notification implements Parcelable
             * @param position
             * See {@link #getPosition}
             */
            public Point(int position) {
            public Point(@IntRange(from = 1) int position) {
                mPosition = position;
            }