Fixed bug in onMeasure() overflow safeguard.

Fixes #8008
This commit is contained in:
Greyson Parrelli 2018-07-23 07:54:24 -07:00
parent fbbf9dede8
commit d8ddb142a9

View File

@ -252,8 +252,8 @@ public class ConversationItem extends LinearLayout
if (needsMeasure) {
if (measureCalls < MAX_MEASURE_CALLS) {
measure(widthMeasureSpec, heightMeasureSpec);
measureCalls++;
measure(widthMeasureSpec, heightMeasureSpec);
} else {
Log.w(TAG, "Hit measure() cap of " + MAX_MEASURE_CALLS);
}