1
0
mirror of https://github.com/vector-im/riotX-android synced 2025-10-06 00:02:48 +02:00

Also clear the view when unbinding MessageVoiceItem

Signed-off-by: Johannes Marbach <johannesm@element.io>
This commit is contained in:
Johannes Marbach
2022-08-05 16:17:12 +02:00
parent 3085afed8c
commit 14d85519c9

View File

@@ -161,10 +161,11 @@ abstract class MessageVoiceItem : AbsMessageItem<MessageVoiceItem.Holder>() {
private fun formatPlaybackTime(time: Int) = DateUtils.formatElapsedTime((time / 1000).toLong())
override fun unbind(holder: Holder) {
super.unbind(holder)
holder.voicePlaybackWaveform.clear()
contentUploadStateTrackerBinder.unbind(attributes.informationData.eventId)
contentDownloadStateTrackerBinder.unbind(mxcUrl)
audioMessagePlaybackTracker.untrack(attributes.informationData.eventId)
super.unbind(holder)
}
override fun getViewStubId() = STUB_ID