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

Commit 3b74a0f7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Update ripple mask when invalidated" into sc-dev am: 6836ab86

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14443376

Change-Id: I39ea2774e1e5a56221229d82a5cd36e1c2cf018b
parents b45b3194 6836ab86
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) {