I have single activity and 3 composable screens Lo...
# compose
r
I have single activity and 3 composable screens Login, Enter Pin, Home. Then from home, there are some other screens. When a user visits for the first time the flow is Login page -> Enter Pin -> Home saves the API key to the Datastore. From next time , Enter Pin -> Home What should be my nav graph? See details in the thread.
First I thought I would make the Home or Enter pin screen as my start destination. then I made the Login and Enter pin as a nested graph Authenticate and made it start destination then when navigating to home I used
Copy code
navController.navigate(Screens.Home.id) {
    popUpTo(Screens.Authenticate.id) {
        inclusive = true
    }
But unfortunately, when I go to the home screen my back button doesn't work anymore. It doesn't exit my app. and my backqueue is like this 0 null 1 home