Merge "Enable dithering on RippleDrawable" into sc-dev am: 5941f0fb95

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14736610

Change-Id: I8201510aebc1f9d9288015bf696280f7939abfa1
This commit is contained in:
Lucas Dupin
2021-05-26 20:45:07 +00:00
committed by Automerger Merge Worker

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