Prevent new ripples when max reached
BUG: 14270202 Change-Id: I53b0522a175eca043ba1cf007377312d03fd8f6d
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user