* commit '786529f2d15fe9b9083eb9ac46c8305f29cdf8e9': Translate ripple mask to account for drawable bounds
This commit is contained in:
@ -855,7 +855,8 @@ public class RippleDrawable extends LayerDrawable {
|
||||
|
||||
// Position the shader to account for canvas translation.
|
||||
if (mMaskShader != null) {
|
||||
mMaskMatrix.setTranslate(-x, -y);
|
||||
final Rect bounds = getBounds();
|
||||
mMaskMatrix.setTranslate(bounds.left - x, bounds.top - y);
|
||||
mMaskShader.setLocalMatrix(mMaskMatrix);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user