Skip to content

Commit 6f73b2e

Browse files
committed
Remove deprecated getPathForSize not in any stable release
PiperOrigin-RevId: 272877489 (cherry picked from commit 17ff72c)
1 parent c74dccb commit 6f73b2e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/java/com/google/android/material/chip/ChipDrawable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ private void drawCompatRipple(@NonNull Canvas canvas, @NonNull Rect bounds) {
631631
if (!isShapeThemingEnabled) {
632632
canvas.drawRoundRect(rectF, getChipCornerRadius(), getChipCornerRadius(), chipPaint);
633633
} else {
634-
getPathForSize(bounds, shapePath);
634+
calculatePathForSize(new RectF(bounds), shapePath);
635635
super.drawShape(canvas, chipPaint, shapePath, getBoundsAsRectF());
636636
}
637637
}

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,13 +1078,13 @@ public void getPathForSize(int width, int height, @NonNull Path path) {
10781078
calculatePathForSize(new RectF(0, 0, width, height), path);
10791079
}
10801080

1081-
/** @deprecated see {@link ShapeAppearancePathProvider} */
1082-
@Deprecated
1083-
public void getPathForSize(@NonNull Rect bounds, @NonNull Path path) {
1084-
calculatePathForSize(new RectF(bounds), path);
1085-
}
1086-
1087-
private void calculatePathForSize(RectF bounds, @NonNull Path path) {
1081+
/**
1082+
* Interim method to expose the pathProvider.
1083+
*
1084+
* @hide
1085+
*/
1086+
@RestrictTo(LIBRARY_GROUP)
1087+
protected final void calculatePathForSize(@NonNull RectF bounds, @NonNull Path path) {
10881088
pathProvider.calculatePath(
10891089
drawableState.shapeAppearanceModel,
10901090
drawableState.interpolation,

0 commit comments

Comments
 (0)