We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 50c3102 + 098ffcd commit b47232bCopy full SHA for b47232b
graphics/java/android/graphics/drawable/GradientDrawable.java
@@ -285,7 +285,7 @@ public void draw(Canvas canvas) {
285
of the fill (if any) without worrying about blending artifacts.
286
*/
287
final boolean useLayer = haveStroke && haveFill && st.mShape != LINE &&
288
- currStrokeAlpha < 255;
+ currStrokeAlpha < 255 && (mAlpha < 255 || mColorFilter != null);
289
290
/* Drawing with a layer is slower than direct drawing, but it
291
allows us to apply paint effects like alpha and colorfilter to
0 commit comments