This may help the leak also

(cherry picked from commit abb31b57b1750d6135d949489a697fb548a9cafc)
This commit is contained in:
Stephen Paul Weber 2024-10-08 22:39:21 -05:00 committed by Arne
parent 43d8ad4af7
commit 7f17673997

View file

@ -1851,6 +1851,7 @@ public class ConversationFragment extends XmppFragment
messageListAdapter.setOnMessageBoxClicked(null);
messageListAdapter.setOnMessageBoxSwiped(null);
binding.conversationViewPager.setAdapter(null);
binding.messagesView.setOnScrollListener(null);
unregisterForContextMenu(binding.messagesView);
unregisterForContextMenu(binding.textSendButton);
if (conversation != null) conversation.setupViewPager(null, null, false, null);