Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5b44d5c authored by Alan Viverette's avatar Alan Viverette Committed by Android Git Automerger
Browse files

am 5646203c: am 63e9875a: am 786529f2: am 54c807e7: Merge "Translate ripple...

am 5646203c: am 63e9875a: am 786529f2: am 54c807e7: Merge "Translate ripple mask to account for drawable bounds" into mnc-dev

* commit '5646203c':
  Translate ripple mask to account for drawable bounds
parents 9125dbbf 5646203c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
        }