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

Commit 40619ae8 authored by Alan Viverette's avatar Alan Viverette
Browse files

Prevent new ripples when max reached

BUG: 14270202
Change-Id: I53b0522a175eca043ba1cf007377312d03fd8f6d
parent 70ad9bc0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -313,6 +313,7 @@ public class TouchFeedbackDrawable extends LayerDrawable {
        
        if (mActiveRipplesCount >= MAX_RIPPLES) {
            Log.e(LOG_TAG, "Max ripple count exceeded", new RuntimeException());
            return;
        }

        final Ripple ripple = mTouchedRipples.get(id);