Skip to content

Commit e0b6a27

Browse files
committed
[Shape] Internal cleanup
PiperOrigin-RevId: 776623191
1 parent a17e208 commit e0b6a27

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,11 @@ private static Builder builder(
536536
context.getTheme().applyStyle(shapeAppearanceOverlayResId, /* force= */ true);
537537
}
538538
TypedArray a = context.obtainStyledAttributes(R.styleable.ShapeAppearance);
539+
return builder(a, defaultCornerSize);
540+
}
539541

542+
@NonNull
543+
private static Builder builder(TypedArray a, @NonNull CornerSize defaultCornerSize) {
540544
try {
541545
int cornerFamily = a.getInt(R.styleable.ShapeAppearance_cornerFamily, CornerFamily.ROUNDED);
542546
int cornerFamilyTopLeft =

0 commit comments

Comments
 (0)