Merge "Update patterned ripple mask when changed" into sc-dev
This commit is contained in:
@@ -1100,6 +1100,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