@@ -71,8 +71,8 @@ public MaskableFrameLayout(
71
71
}
72
72
73
73
private MaskableDelegate createMaskableDelegate () {
74
- if (VERSION .SDK_INT >= VERSION_CODES .R ) {
75
- return new MaskableDelegateV30 (this );
74
+ if (VERSION .SDK_INT >= VERSION_CODES .TIRAMISU ) {
75
+ return new MaskableDelegateV33 (this );
76
76
} else if (VERSION .SDK_INT >= VERSION_CODES .LOLLIPOP ) {
77
77
return new MaskableDelegateV21 (this );
78
78
} else {
@@ -303,7 +303,7 @@ void invalidateClippingMethod(View view) {
303
303
}
304
304
305
305
/**
306
- * A {@link MaskableDelegate} for API 21-29 that uses {@link ViewOutlineProvider} to clip when the
306
+ * A {@link MaskableDelegate} for API 21-32 that uses {@link ViewOutlineProvider} to clip when the
307
307
* shape being clipped is a round rect with symmetrical corners and canvas clipping for all other
308
308
* shapes.
309
309
*
@@ -366,16 +366,16 @@ public void getOutline(View view, Outline outline) {
366
366
}
367
367
368
368
/**
369
- * A {@link MaskableDelegate} for API 30 + that uses {@link ViewOutlineProvider} to clip for
369
+ * A {@link MaskableDelegate} for API 33 + that uses {@link ViewOutlineProvider} to clip for
370
370
* all shapes.
371
371
*
372
- * <p>{@link Outline#setPath(Path)} was added in API 30 and allows using {@link
372
+ * <p>{@link Outline#setPath(Path)} was added in API 33 and allows using {@link
373
373
* ViewOutlineProvider} to clip for all shapes.
374
374
*/
375
- @ RequiresApi (VERSION_CODES .R )
376
- private static class MaskableDelegateV30 extends MaskableDelegate {
375
+ @ RequiresApi (VERSION_CODES .TIRAMISU )
376
+ private static class MaskableDelegateV33 extends MaskableDelegate {
377
377
378
- MaskableDelegateV30 (View view ) {
378
+ MaskableDelegateV33 (View view ) {
379
379
initMaskOutlineProvider (view );
380
380
}
381
381
0 commit comments