From 8b8a4f3d7be1eee231f27a399c052f4a090cb63b Mon Sep 17 00:00:00 2001 From: Maxime NATUREL Date: Thu, 28 Jul 2022 16:51:11 +0200 Subject: [PATCH] Fixing missing clear on audio tracker listeners --- .../im/vector/app/features/home/room/detail/TimelineFragment.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/TimelineFragment.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/TimelineFragment.kt index 8f9564789a..62677ce9ef 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/TimelineFragment.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/TimelineFragment.kt @@ -966,6 +966,7 @@ class TimelineFragment @Inject constructor( override fun onDestroyView() { audioMessagePlaybackTracker.makeAllPlaybacksIdle() + audioMessagePlaybackTracker.clear() lazyLoadedViews.unBind() timelineEventController.callback = null timelineEventController.removeModelBuildListener(modelBuildListener)