nglauber
09/27/2021, 12:11 PMAnimatedNavHost
which has many screens and the first one is the HomeScreen
.
HomeScreen
has another NavHost
to implement the navigation between the bottom navigation tabs.
Here’s the steps to reproduce:
1. Select second tab in HomeScreen
(or any other tab but the first)
2. Navigate to another screen declared inside the AnimatedNavHost
(let’s say DetailsTab2Screen
3. Press back. So the HomeScreen
is displayed again with the second tab selected.
4. Press back again. The first tab of the HomeScreen
is selected.
5. Press back again.
The expected result is: the application must be closed
The actual result is: the user has to press the back button again to leave the app. And if you repeat the steps 2 and 3, N times, the user has to press the back key N + 2 times to leave the app.
Any thoughts?Ian Lake
09/27/2021, 12:54 PMnglauber
09/27/2021, 1:02 PMK Merle
09/28/2021, 6:29 AMNavHost
inside your home screen, or are you using navigation
inside the origin AnimatedNavHost?nglauber
09/28/2021, 12:50 PMK Merle
09/28/2021, 12:54 PMnglauber
09/28/2021, 12:57 PMK Merle
09/28/2021, 1:15 PM