Enable dithering on RippleDrawable
Per UX request, given that gradients started to show some banding. Test: manual Fixes: 189281134 Change-Id: I8898f2463c6e07c390c07c242b6632dcbb9c3ef3
This commit is contained in:
@@ -1193,6 +1193,9 @@ public class RippleDrawable extends LayerDrawable {
|
||||
mRipplePaint = new Paint();
|
||||
mRipplePaint.setAntiAlias(true);
|
||||
mRipplePaint.setStyle(Paint.Style.FILL);
|
||||
if (mState.mRippleStyle == STYLE_PATTERNED) {
|
||||
mRipplePaint.setDither(true);
|
||||
}
|
||||
}
|
||||
|
||||
final float x = mHotspotBounds.exactCenterX();
|
||||
|
||||
Reference in New Issue
Block a user