am 63e9875a: am 786529f2: am 54c807e7: Merge "Translate ripple mask to account for drawable bounds" into mnc-dev
* commit '63e9875a3d39cd46e874cba840f51ee35c1b7fa4': 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