File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
lib/java/com/google/android/material/textfield Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 1717package com .google .android .material .textfield ;
1818
1919import android .graphics .Canvas ;
20- import android .graphics .Color ;
21- import android .graphics .Paint ;
22- import android .graphics .Paint .Style ;
23- import android .graphics .PorterDuff .Mode ;
24- import android .graphics .PorterDuffXfermode ;
2520import android .graphics .RectF ;
2621import android .graphics .Region .Op ;
2722import android .os .Build .VERSION ;
3631 * outline mode.
3732 */
3833class CutoutDrawable extends MaterialShapeDrawable {
39- @ NonNull private final Paint cutoutPaint ;
4034 @ NonNull private final RectF cutoutBounds ;
4135
4236 CutoutDrawable () {
@@ -45,17 +39,9 @@ class CutoutDrawable extends MaterialShapeDrawable {
4539
4640 CutoutDrawable (@ Nullable ShapeAppearanceModel shapeAppearanceModel ) {
4741 super (shapeAppearanceModel != null ? shapeAppearanceModel : new ShapeAppearanceModel ());
48- cutoutPaint = new Paint (Paint .ANTI_ALIAS_FLAG );
49- setPaintStyles ();
5042 cutoutBounds = new RectF ();
5143 }
5244
53- private void setPaintStyles () {
54- cutoutPaint .setStyle (Style .FILL_AND_STROKE );
55- cutoutPaint .setColor (Color .WHITE );
56- cutoutPaint .setXfermode (new PorterDuffXfermode (Mode .DST_OUT ));
57- }
58-
5945 boolean hasCutout () {
6046 return !cutoutBounds .isEmpty ();
6147 }
You can’t perform that action at this time.
0 commit comments