Skip to content

Commit

Permalink
Fix incorrectly navigating on resume
Browse files Browse the repository at this point in the history
(cherry picked from commit 2c7bd27)
  • Loading branch information
nielsvanvelzen committed Sep 28, 2024
1 parent ea16d8a commit bb42fd4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb42fd4

Please sign in to comment.