We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fb2375 commit b5533eaCopy full SHA for b5533ea
lib/java/com/google/android/material/shape/MaterialShapeDrawable.java
@@ -1180,7 +1180,13 @@ public void getOutline(@NonNull Outline outline) {
1180
1181
calculatePath(getBoundsAsRectF(), path);
1182
if (path.isConvex() || Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
1183
- outline.setConvexPath(path);
+ try {
1184
+ outline.setConvexPath(path);
1185
+ } catch (IllegalArgumentException ignored) {
1186
+ // The change to support concave paths was done late in the release cycle. People
1187
+ // using pre-releases of Q would experience a crash here.
1188
+ }
1189
+
1190
}
1191
1192
0 commit comments