Filip Wiesner
05/03/2022, 2:00 PMFilip Wiesner
05/03/2022, 2:02 PMbottomNav.setupWithNavController(controller).
Compose navigation does not have such "connector" provided by the nav library.Ian Lake
05/03/2022, 2:38 PMFilip Wiesner
05/03/2022, 2:40 PMOn Android, revisiting a section resets the app, returning the user to its top-level screen.
Filip Wiesner
05/03/2022, 2:43 PMIan Lake
05/03/2022, 2:48 PMIan Lake
05/03/2022, 2:50 PMFilip Wiesner
05/03/2022, 3:06 PMFilip Wiesner
05/04/2022, 1:52 PMA and B and another screen C which is opened from A. I start on screen A (as a start destination), navigate to C and then switch to B using bottom navigation. Now I am at B but C should be saved in a "separate back stack" meaning that C should be displayed when I navigate to A, correct?
So now when I
1. navigate from B to A using bottom nav the C is displayed ✅
2. navigate from B to A using the system back button, the A is displayed ❔ Not sure if this is correct or not.
3. navigate from B to A using the system back button (I am at A), navigate back to B using bottom nav (I am at B) and navigate to A using bottom nav, I would expect to land on A because I just was at A and the state was not restored but I end up back on C - the back stack was restored. Is this expected behavior? Because it does not feel right.
I would either expect to A->C saved back stack be removed when I pop up to start destination or restored same way as with navigating.Filip Wiesner
05/04/2022, 1:53 PM