mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
Unregister listeners on recording tile
This commit is contained in:
parent
6ee1e86951
commit
5eb260e674
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user