Merge "Enable dithering on RippleDrawable" into sc-dev

This commit is contained in:
Lucas Dupin 2021-05-26 20:39:09 +00:00 committed by Android (Google) Code Review
commit 5941f0fb95

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