Update patterned ripple mask when changed

Fixes: 188601242
Test: visual
Change-Id: I036564223e27a5630151ef2a9a5a81b29e291a49
This commit is contained in:
Jay Aliomer
2021-06-17 01:00:45 -04:00
parent 9da336b4c1
commit 88114108ee

View File

@@ -1111,6 +1111,11 @@ public class RippleDrawable extends LayerDrawable {
if (mState.mRippleStyle == STYLE_SOLID) {
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() {