Also reset mBadgeScale to 0 when recycling view.

When left as 1f, the drawBadgeIfNecessary thinks that there
is still a badge -- which results in a NPE when trying to draw
the badge.

Bug: 68324671
Change-Id: I4eedb5825b3a6429c99de0466a77d368a39b1951
This commit is contained in:
Jon Miranda committed 2017-11-01 16:01:13 -07:00
1 parent 5254944a68
commit 48043ee0d6
2 files changed
+8

No files matched your search

@@ -183,6 +183,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver {
public void reset() {
mBadgeInfo = null;
mBadgePalette = null;
mBadgeScale = 0f;
mForceHideBadge = false;
}