Unregister listeners on recording tile

This commit is contained in:
Florian Renaud 2022-11-10 14:11:34 +01:00
parent 6ee1e86951
commit 5eb260e674

View File

@ -113,6 +113,10 @@ abstract class MessageVoiceBroadcastRecordingItem : AbsMessageVoiceBroadcastItem
super.unbind(holder)
recorderListener?.let { recorder?.removeListener(it) }
recorderListener = null
with(holder) {
recordButton.onClick(null)
stopRecordButton.onClick(null)
}
}
override fun getViewStubId() = STUB_ID