Fix bug where recycled BubbleTextView kept their badges.
Bug: 68324671 Change-Id: Id5f4db6706afd002242d95d44422fc61042798c8
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user