Fix bug where recycled BubbleTextView kept their badges.

Bug: 68324671
Change-Id: Id5f4db6706afd002242d95d44422fc61042798c8
This commit is contained in:
Jon Miranda
2017-10-26 11:34:55 -07:00
parent 2ff529a575
commit 5254944a68
2 changed files with 10 additions and 0 deletions
@@ -177,6 +177,15 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver {
}
/**
* Resets the view so it can be recycled.
*/
public void reset() {
mBadgeInfo = null;
mBadgePalette = null;
mForceHideBadge = false;
}
public void applyFromShortcutInfo(ShortcutInfo info) {
applyFromShortcutInfo(info, false);
}