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

Commit 432e984e authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Add missing @FloatRange"

parents c04c6be6 ac6fc830
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -55187,7 +55187,7 @@ package android.view {
  }
  public class ViewPropertyAnimator {
    method public android.view.ViewPropertyAnimator alpha(float);
    method public android.view.ViewPropertyAnimator alpha(@FloatRange(from=0.0f, to=1.0f) float);
    method public android.view.ViewPropertyAnimator alphaBy(float);
    method public void cancel();
    method public long getDuration();
+2 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package android.view;
import android.animation.Animator;
import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
import android.annotation.FloatRange;
import android.graphics.RenderNode;

import java.util.ArrayList;
@@ -725,7 +726,7 @@ public class ViewPropertyAnimator {
     * @see View#setAlpha(float)
     * @return This object, allowing calls to methods in this class to be chained.
     */
    public ViewPropertyAnimator alpha(float value) {
    public ViewPropertyAnimator alpha(@FloatRange(from = 0.0f, to = 1.0f) float value) {
        animateProperty(ALPHA, value);
        return this;
    }
+1 −1
Original line number Diff line number Diff line
@@ -53330,7 +53330,7 @@ package android.view {
  }
  public class ViewPropertyAnimator {
    method public android.view.ViewPropertyAnimator alpha(float);
    method public android.view.ViewPropertyAnimator alpha(@FloatRange(from=0.0f, to=1.0f) float);
    method public android.view.ViewPropertyAnimator alphaBy(float);
    method public void cancel();
    method public long getDuration();