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

Commit 75af619b authored by Matías Hernández's avatar Matías Hernández
Browse files

Use constants for @IntRange annotation in getters, in addition to constructor

Bug: 415827681
Test: N/A
Flag: android.app.api_metric_style
Change-Id: I9d047974ae7c9beed6cc8a42e1ea8d8f1ebf1907
parent bb5384bb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7057,8 +7057,8 @@ package android.app {
    ctor public Notification.Metric.FixedFloat(float);
    ctor public Notification.Metric.FixedFloat(float, @Nullable String);
    ctor public Notification.Metric.FixedFloat(float, @Nullable String, @IntRange(from=0x0, to=0x6) int, @IntRange(from=0x0, to=0x6) int);
    method @IntRange(from=0, to=6) public int getMaxFractionDigits();
    method @IntRange(from=0, to=6) public int getMinFractionDigits();
    method @IntRange(from=0x0, to=0x6) public int getMaxFractionDigits();
    method @IntRange(from=0x0, to=0x6) public int getMinFractionDigits();
    method @Nullable public String getUnit();
    method public float getValue();
  }
+2 −2
Original line number Diff line number Diff line
@@ -12945,13 +12945,13 @@ public class Notification implements Parcelable
            }
            /** Minimum number of fractional digits to display. */
            @IntRange(from = 0, to = 6)
            @IntRange(from = LOWER_BOUND_FRACTION_DIGITS, to = UPPER_BOUND_FRACTION_DIGITS)
            public int getMinFractionDigits() {
                return mMinFractionDigits;
            }
            /** Maximum number of fractional digits to display. */
            @IntRange(from = 0, to = 6)
            @IntRange(from = LOWER_BOUND_FRACTION_DIGITS, to = UPPER_BOUND_FRACTION_DIGITS)
            public int getMaxFractionDigits() {
                return mMaxFractionDigits;
            }