Skip to content

Commit 0f764e9

Browse files
wcshigsajith
authored andcommitted
Change scope of #getBoundsAsRectF and #drawShape to be protected so the children of MSD could call them.
PiperOrigin-RevId: 219189920
1 parent fadcb7f commit 0f764e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ public Region getTransparentRegion() {
400400
return transparentRegion;
401401
}
402402

403-
private RectF getBoundsAsRectF() {
403+
protected RectF getBoundsAsRectF() {
404404
Rect bounds = getBounds();
405405
rectF.set(bounds.left, bounds.top, bounds.right, bounds.bottom);
406406
return rectF;
@@ -762,7 +762,7 @@ public void draw(Canvas canvas) {
762762
}
763763

764764
/** Draw the path or try to draw a round rect if possible. */
765-
private void drawShape(Canvas canvas, Paint paint, Path path, RectF bounds) {
765+
protected void drawShape(Canvas canvas, Paint paint, Path path, RectF bounds) {
766766
if (shapeAppearanceModel.isRoundRect()) {
767767
float cornerSize = shapeAppearanceModel.getTopRightCorner().getCornerSize();
768768
canvas.drawRoundRect(bounds, cornerSize, cornerSize, paint);

0 commit comments

Comments
 (0)