Remove item listeners
This commit is contained in:
parent
1c40f9c5e8
commit
226e2026a1
|
@ -140,8 +140,13 @@ abstract class MessageVoiceBroadcastListeningItem : AbsMessageVoiceBroadcastItem
|
||||||
override fun unbind(holder: Holder) {
|
override fun unbind(holder: Holder) {
|
||||||
super.unbind(holder)
|
super.unbind(holder)
|
||||||
player.removeListener(voiceBroadcast, playerListener)
|
player.removeListener(voiceBroadcast, playerListener)
|
||||||
holder.seekBar.setOnSeekBarChangeListener(null)
|
|
||||||
playbackTracker.untrack(voiceBroadcast.voiceBroadcastId)
|
playbackTracker.untrack(voiceBroadcast.voiceBroadcastId)
|
||||||
|
with(holder) {
|
||||||
|
seekBar.onClick(null)
|
||||||
|
playPauseButton.onClick(null)
|
||||||
|
fastForwardButton.onClick(null)
|
||||||
|
fastBackwardButton.onClick(null)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getViewStubId() = STUB_ID
|
override fun getViewStubId() = STUB_ID
|
||||||
|
|
Loading…
Reference in New Issue