Merge "Update patterned ripple mask when changed" into sc-dev am: ccc98b8d6e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15009070 Change-Id: I29c6cc213329c1938723628e2be656c06223321a
This commit is contained in:
@@ -1100,6 +1100,11 @@ public class RippleDrawable extends LayerDrawable {
|
|||||||
if (mState.mRippleStyle == STYLE_SOLID) {
|
if (mState.mRippleStyle == STYLE_SOLID) {
|
||||||
mMaskCanvas.translate(left, top);
|
mMaskCanvas.translate(left, top);
|
||||||
}
|
}
|
||||||
|
if (mState.mRippleStyle == STYLE_PATTERNED) {
|
||||||
|
for (int i = 0; i < mRunningAnimations.size(); i++) {
|
||||||
|
mRunningAnimations.get(i).getProperties().getShader().setShader(mMaskShader);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private int getMaskType() {
|
private int getMaskType() {
|
||||||
|
|||||||
Reference in New Issue
Block a user