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: Iad5ac3f7c2089bbee9c226825cb1e34e6da94b68
This commit is contained in:
@@ -1193,6 +1193,9 @@ public class RippleDrawable extends LayerDrawable {
|
|||||||
mRipplePaint = new Paint();
|
mRipplePaint = new Paint();
|
||||||
mRipplePaint.setAntiAlias(true);
|
mRipplePaint.setAntiAlias(true);
|
||||||
mRipplePaint.setStyle(Paint.Style.FILL);
|
mRipplePaint.setStyle(Paint.Style.FILL);
|
||||||
|
if (mState.mRippleStyle == STYLE_PATTERNED) {
|
||||||
|
mRipplePaint.setDither(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final float x = mHotspotBounds.exactCenterX();
|
final float x = mHotspotBounds.exactCenterX();
|
||||||
|
|||||||
Reference in New Issue
Block a user