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:
@@ -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
|
||||
|
Reference in New Issue
Block a user