Merge "Allow non-convex paths in Outline#setConvexPath" into qt-dev

am: 9be1d08acb

Change-Id: I01582c19eee9b0aedde169b632384ed60c680f09
This commit is contained in:
Leon Scroggins
2019-05-30 11:55:02 -07:00
committed by android-build-merger

View File

@@ -273,8 +273,12 @@ public final class Outline {
}
/**
* Sets the Constructs an Outline from a
* Sets the Outline to a
* {@link android.graphics.Path#isConvex() convex path}.
*
* @param convexPath used to construct the Outline. As of
* {@link android.os.Build.VERSION_CODES#Q}, it is no longer required to be
* convex.
*/
public void setConvexPath(@NonNull Path convexPath) {
if (convexPath.isEmpty()) {
@@ -282,10 +286,6 @@ public final class Outline {
return;
}
if (!convexPath.isConvex()) {
throw new IllegalArgumentException("path must be convex");
}
if (mPath == null) {
mPath = new Path();
}