mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
Cleanup on unbinding
Valere's review
This commit is contained in:
parent
7b8ede03bc
commit
5136979352
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue