From 1d20a02d1757b7a023e9c5f6e25d4a349e260e7a Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Wed, 13 Apr 2022 19:22:19 +0200 Subject: [PATCH] fix crash in ConversationsFragment (#2426) --- .../tusky/components/conversation/ConversationsFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/components/conversation/ConversationsFragment.kt b/app/src/main/java/com/keylesspalace/tusky/components/conversation/ConversationsFragment.kt index 68414455..a09026c2 100644 --- a/app/src/main/java/com/keylesspalace/tusky/components/conversation/ConversationsFragment.kt +++ b/app/src/main/java/com/keylesspalace/tusky/components/conversation/ConversationsFragment.kt @@ -102,7 +102,7 @@ class ConversationsFragment : SFragment(), StatusActionListener, Injectable, Res initSwipeToRefresh() - lifecycleScope.launch { + viewLifecycleOwner.lifecycleScope.launch { viewModel.conversationFlow.collectLatest { pagingData -> adapter.submitData(pagingData) }