[automerger] Fix bug where recycled BubbleTextView kept their badges. am: 5254944a68

Change-Id: Icb486e7a529aae15d5f959487c489ef1ad5798b1
This commit is contained in:
Android Build Merger (Role)
2017-10-26 18:35:10 +00:00
2 changed files with 10 additions and 0 deletions

View File

@@ -178,6 +178,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);
}