From fb354a375202e697e3b797cbdc5da95357989028 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Mon, 14 Mar 2016 17:04:22 -0700 Subject: [PATCH] Return <0 if undefined Outline radius bug:27531289 Change-Id: I0a2880693c59406e2d610f3a11020cde5379e230 --- graphics/java/android/graphics/Outline.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/graphics/java/android/graphics/Outline.java b/graphics/java/android/graphics/Outline.java index d3124545ae84d..3e86e6ff15d30 100644 --- a/graphics/java/android/graphics/Outline.java +++ b/graphics/java/android/graphics/Outline.java @@ -32,7 +32,7 @@ import android.graphics.drawable.Drawable; * @see Drawable#getOutline(Outline) */ public final class Outline { - private static final float RADIUS_UNDEFINED = -1.0f; + private static final float RADIUS_UNDEFINED = Float.NEGATIVE_INFINITY; /** @hide */ public Path mPath; @@ -196,11 +196,11 @@ public final class Outline { } /** - * Returns the rounded rect radius, if set, or {@code -1} if a path has + * Returns the rounded rect radius, if set, or a value less than 0 if a path has * been set via {@link #setConvexPath(Path)}. A return value of {@code 0} * indicates a non-rounded rect. * - * @return the rounded rect radius or {@code -1} + * @return the rounded rect radius, or value < 0 */ public float getRadius() { return mRadius;