You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
GradientDrawable: fix imporper commenting out
This commit is contained in:
@@ -462,7 +462,6 @@ public class GradientDrawable extends Drawable {
|
|||||||
final boolean haveFill = currFillAlpha > 0;
|
final boolean haveFill = currFillAlpha > 0;
|
||||||
final GradientState st = mGradientState;
|
final GradientState st = mGradientState;
|
||||||
final ColorFilter colorFilter = mColorFilter != null ? mColorFilter : mTintFilter;
|
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
|
/* we need a layer iff we're drawing both a fill and stroke, and the
|
||||||
stroke is non-opaque, and our shapetype actually supports
|
stroke is non-opaque, and our shapetype actually supports
|
||||||
fill+stroke. Otherwise we can just draw the stroke (if any) on top
|
fill+stroke. Otherwise we can just draw the stroke (if any) on top
|
||||||
@@ -570,14 +569,14 @@ public class GradientDrawable extends Drawable {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (useLayer) {
|
/*if (useLayer) {
|
||||||
canvas.restore();
|
canvas.restore();
|
||||||
} else {
|
} else {*/
|
||||||
mFillPaint.setAlpha(prevFillAlpha);
|
mFillPaint.setAlpha(prevFillAlpha);
|
||||||
if (haveStroke) {
|
if (haveStroke) {
|
||||||
mStrokePaint.setAlpha(prevStrokeAlpha);
|
mStrokePaint.setAlpha(prevStrokeAlpha);
|
||||||
}
|
}
|
||||||
}
|
/*}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
private Path buildRing(GradientState st) {
|
private Path buildRing(GradientState st) {
|
||||||
|
|||||||
Reference in New Issue
Block a user