Merge "Invalidate the cached ripple drawable mask if mask layer changes" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ac21d5c36e
@@ -423,6 +423,7 @@ public class RippleDrawable extends LayerDrawable {
|
|||||||
if (super.setDrawableByLayerId(id, drawable)) {
|
if (super.setDrawableByLayerId(id, drawable)) {
|
||||||
if (id == R.id.mask) {
|
if (id == R.id.mask) {
|
||||||
mMask = drawable;
|
mMask = drawable;
|
||||||
|
mHasValidMask = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user