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:
Lucas Dupin
2021-05-26 09:13:51 -07:00
parent 1cbeefce09
commit 1cbfc3b00b

View File

@@ -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();