From 40619ae8016248979c0147f6bcc9bfd41f07bb4a Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Wed, 23 Apr 2014 10:33:47 -0700 Subject: Prevent new ripples when max reached BUG: 14270202 Change-Id: I53b0522a175eca043ba1cf007377312d03fd8f6d --- graphics/java/android/graphics/drawable/TouchFeedbackDrawable.java | 1 + 1 file changed, 1 insertion(+) (limited to 'graphics') diff --git a/graphics/java/android/graphics/drawable/TouchFeedbackDrawable.java b/graphics/java/android/graphics/drawable/TouchFeedbackDrawable.java index 5c370a4..5101e35 100644 --- a/graphics/java/android/graphics/drawable/TouchFeedbackDrawable.java +++ b/graphics/java/android/graphics/drawable/TouchFeedbackDrawable.java @@ -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); -- cgit v1.1