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

Commit 5121e27f authored by Jay Aliomer's avatar Jay Aliomer
Browse files

Update ripple mask when invalidated

When a child drawable is updated, the invalidated mask
needs to reflect on the animation paint

Fixes: 187290156
Test: visual
Change-Id: I30065027f73f646c887933648d8e296ec651c299
parent d6e2ea07
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -864,6 +864,10 @@ public class RippleDrawable extends LayerDrawable {
        boolean shouldExit = mExitingAnimation;
        mRippleActive = false;
        mExitingAnimation = false;
        if (mRunningAnimations.size() > 0 && !shouldAnimate) {
            // update paint when view is invalidated
            getRipplePaint();
        }
        drawContent(canvas);
        drawPatternedBackground(canvas, cx, cy);
        if (shouldAnimate && mRunningAnimations.size() <= MAX_RIPPLES) {