mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 20:29:10 +03:00
Unregister listeners on recording tile
This commit is contained in:
parent
6ee1e86951
commit
5eb260e674
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue