Skip to content

Commit d4b9d90

Browse files
pekingmepaulfthomas
authored andcommitted
[MaterialShapes] Fixed uneven rotation of pentagon shape.
Resolves #4306 PiperOrigin-RevId: 700371467
1 parent 7b62f64 commit d4b9d90

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/java/com/google/android/material/shape/MaterialShapes.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,7 @@ private static RoundedPolygon getClamShell() {
258258
private static RoundedPolygon getPentagon() {
259259
List<VertexAndRounding> points = new ArrayList<>();
260260
points.add(new VertexAndRounding(new PointF(0.500f, -0.009f), new CornerRounding(0.172f, 0f)));
261-
points.add(new VertexAndRounding(new PointF(1.030f, 0.365f), new CornerRounding(0.164f, 0f)));
262-
points.add(new VertexAndRounding(new PointF(0.828f, 0.970f), new CornerRounding(0.169f, 0f)));
263-
return customPolygon(points, 1, 0.5f, 0.5f, true);
261+
return customPolygon(points, 5, 0.5f, 0.5f, false);
264262
}
265263

266264
@NonNull

0 commit comments

Comments
 (0)