Skip to content
Snippets Groups Projects
Commit 88538f16 authored by Pierre Nicolas's avatar Pierre Nicolas :joy:
Browse files

Reschedule to avoid crash

GitLab: #1258

Fix a crash when calling goToHome when currently executing a fragment transaction.

Change-Id: I90a3c831692707f8c1c94bf84a596567d0aaf05d
parent 1886d856
No related branches found
No related tags found
No related merge requests found
......@@ -989,7 +989,8 @@ class ConversationFragment : BaseSupportFragment<ConversationPresenter, Conversa
if (activity is ConversationActivity) {
requireActivity().finish()
} else {
requireActivity().onBackPressedDispatcher.onBackPressed()
// Post because we might be currently executing a fragment transaction
view?.post { activity?.onBackPressedDispatcher?.onBackPressed() }
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment