Cleanup on unbinding

Valere's review
This commit is contained in:
Benoit Marty 2021-03-22 18:33:06 +01:00
parent 7b8ede03bc
commit 5136979352

View file

@ -77,6 +77,11 @@ abstract class BottomSheetMessagePreviewItem : VectorEpoxyModel<BottomSheetMessa
holder.timestamp.setTextOrHide(time)
}
override fun unbind(holder: Holder) {
imageContentRenderer?.clear(holder.imagePreview)
super.unbind(holder)
}
class Holder : VectorEpoxyHolder() {
val avatar by bind<ImageView>(R.id.bottom_sheet_message_preview_avatar)
val sender by bind<TextView>(R.id.bottom_sheet_message_preview_sender)