Skip to content

Commit d9d9b6e

Browse files
wcshigsajith
authored andcommitted
Change scope of #getFillBounds to protected so children can override it.
PiperOrigin-RevId: 219227988
1 parent 0f764e9 commit d9d9b6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ private void drawFillShape(Canvas canvas) {
775775
drawShape(canvas, fillPaint, path, getFillBounds());
776776
}
777777

778-
private RectF getFillBounds() {
778+
protected RectF getFillBounds() {
779779
RectF fillBounds = getBoundsAsRectF();
780780
// If there's a stroke, inset the bounds by a hairline to prevent the fill from peeking out from
781781
// under the stroke.

0 commit comments

Comments
 (0)