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

Commit c9609abc authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Use constants for @IntRange annotation in getters, in addition to constructor" into main

parents 2a51042c 75af619b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7058,8 +7058,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
@@ -12900,13 +12900,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;
            }