* commit 'bfd62580df499099060847c606ee6fc99a5abc21': Ensure ripple mask is drawn at correct position
This commit is contained in:
@ -786,12 +786,16 @@ public class RippleDrawable extends LayerDrawable {
|
||||
mMaskColorFilter = new PorterDuffColorFilter(0, PorterDuff.Mode.SRC_IN);
|
||||
}
|
||||
|
||||
// Draw the appropriate mask.
|
||||
// Draw the appropriate mask anchored to (0,0).
|
||||
final int left = bounds.left;
|
||||
final int top = bounds.top;
|
||||
mMaskCanvas.translate(-left, -top);
|
||||
if (maskType == MASK_EXPLICIT) {
|
||||
drawMask(mMaskCanvas);
|
||||
} else if (maskType == MASK_CONTENT) {
|
||||
drawContent(mMaskCanvas);
|
||||
}
|
||||
mMaskCanvas.translate(left, top);
|
||||
}
|
||||
|
||||
private int getMaskType() {
|
||||
|
Reference in New Issue
Block a user