Update patterned ripple mask when changed
Fixes: 188601242 Test: visual Change-Id: I036564223e27a5630151ef2a9a5a81b29e291a49
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user