Using ViewModel to handle clearing of audio controller
This commit is contained in:
parent
018772ca9a
commit
81cba3d275
|
@ -965,8 +965,7 @@ class TimelineFragment @Inject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onDestroyView() {
|
override fun onDestroyView() {
|
||||||
audioMessagePlaybackTracker.makeAllPlaybacksIdle()
|
messageComposerViewModel.handle(MessageComposerAction.EndAllVoiceActions())
|
||||||
audioMessagePlaybackTracker.clear()
|
|
||||||
lazyLoadedViews.unBind()
|
lazyLoadedViews.unBind()
|
||||||
timelineEventController.callback = null
|
timelineEventController.callback = null
|
||||||
timelineEventController.removeModelBuildListener(modelBuildListener)
|
timelineEventController.removeModelBuildListener(modelBuildListener)
|
||||||
|
|
Loading…
Reference in New Issue