You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after first launch the user passes through Onboarding to MainPage
by onBackPress on MainPage user returns to Onboarding
Issue:
this part of code working only for the next launches after first NavHost( navController = navController, startDestination = if(shouldShowOnboarding) { Route.WELCOME } else Route.TRACKER_OVERVIEW )
This can be fixed by implementing the following inside the TrackerOverviewScreen.kt file (you must have a lambda to navigate up). Please put this at the beginning of the body:
BackHandler {
onNavigateUp()
}
...then on MainActivity on your TrackerOverviewScreen composable inside your NavHost:
onNavigateUp = { finish() }
Context:
Issue:
this part of code working only for the next launches after first
NavHost( navController = navController, startDestination = if(shouldShowOnboarding) { Route.WELCOME } else Route.TRACKER_OVERVIEW )
Step to reproduce:
The text was updated successfully, but these errors were encountered: