Prevent new ripples when max reached

BUG: 14270202
Change-Id: I53b0522a175eca043ba1cf007377312d03fd8f6d
This commit is contained in:
Alan Viverette
2014-04-23 10:33:47 -07:00
parent 70ad9bc033
commit 40619ae801

View File

@@ -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);