Skip to content

onBackPress returns on the unexpected page #7

@YakubenkoAndrii

Description

@YakubenkoAndrii

Context:

  • 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 )

Step to reproduce:

  • branches: master / Part25/ImproovingNavigation+BugFix
  • fully delete app from device
  • install app
  • pass onboarding
  • call onBackPress on the main page

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions