From ce85f3e0b18c42cdd2970d6359f97d38f47d39f8 Mon Sep 17 00:00:00 2001 From: Mis012 Date: Thu, 13 Jun 2024 20:55:20 +0200 Subject: [PATCH] GradientDrawable: fix imporper commenting out --- .../android/graphics/drawable/GradientDrawable.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/api-impl/android/graphics/drawable/GradientDrawable.java b/src/api-impl/android/graphics/drawable/GradientDrawable.java index b57add78..80d4a37b 100644 --- a/src/api-impl/android/graphics/drawable/GradientDrawable.java +++ b/src/api-impl/android/graphics/drawable/GradientDrawable.java @@ -462,7 +462,6 @@ public class GradientDrawable extends Drawable { final boolean haveFill = currFillAlpha > 0; final GradientState st = mGradientState; final ColorFilter colorFilter = mColorFilter != null ? mColorFilter : mTintFilter; - System.out.println("draw(): colorFilter: "+colorFilter); /* we need a layer iff we're drawing both a fill and stroke, and the stroke is non-opaque, and our shapetype actually supports fill+stroke. Otherwise we can just draw the stroke (if any) on top @@ -570,14 +569,14 @@ public class GradientDrawable extends Drawable { break; } - if (useLayer) { + /*if (useLayer) { canvas.restore(); - } else { + } else {*/ mFillPaint.setAlpha(prevFillAlpha); if (haveStroke) { mStrokePaint.setAlpha(prevStrokeAlpha); } - } + /*}*/ } private Path buildRing(GradientState st) {