Fix incorrectly navigating on resume
Some checks failed
App / Lint / Lint (push) Has been cancelled
App / Test / Test (push) Has been cancelled
Repo / Label merge conflict / Triage (push) Has been cancelled

(cherry picked from commit 2c7bd27525)
This commit is contained in:
Niels van Velzen 2024-09-27 20:42:02 +02:00
parent ea16d8a6a4
commit bb42fd4801

View File

@ -61,7 +61,7 @@ class MainActivity : FragmentActivity() {
if (savedInstanceState == null && navigationRepository.canGoBack) navigationRepository.reset(clearHistory = true)
navigationRepository.currentAction
.flowWithLifecycle(lifecycle, Lifecycle.State.RESUMED)
.flowWithLifecycle(lifecycle, Lifecycle.State.STARTED)
.onEach { action ->
handleNavigationAction(action)
backPressedCallback.isEnabled = navigationRepository.canGoBack