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

Commit afe281f7 authored by Sergei Vasilinetc's avatar Sergei Vasilinetc Committed by Android (Google) Code Review
Browse files

Merge "Fix documentation for GradientDrawable.getCornerRadius"

parents b28af994 a8d3485f
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -282,10 +282,11 @@ public class GradientDrawable extends Drawable {
    }

    /**
     * Returns the radius for the corners of the gradient.
     * Returns the radius for the corners of the gradient, that was previously set with
     * {@link #setCornerRadius(float)}.
     * <p>
     * If the radius was previously set with {@link #setCornerRadii(float[])},
     * or if the corners are not rounded, this method will return {@code null}.
     * If the radius was previously cleared via passing {@code null}
     * to {@link #setCornerRadii(float[])}, this method will return 0.
     *
     * @return the radius in pixels of the corners of the rectangle shape, or 0
     * @see #setCornerRadius