theapache64
08/13/2021, 4:47 PMcb
08/13/2021, 4:48 PMtheapache64
08/13/2021, 4:48 PMA
, B
and C
.
A
and C
are navigation-compose’s composable
B is Accompanist’s `bottomSheet`
When navigate
from A
-> B
-> C
and then press back button from C
, the app goes to A
rather than B
Is there anyway to keep the bottomSheet’s state so that when back button pressed it’ll go to B
?jossiwolf
08/13/2021, 4:55 PMtheapache64
08/13/2021, 5:00 PMNathan
08/13/2021, 6:32 PMJeremy Woods
08/13/2021, 7:56 PMtheapache64
08/13/2021, 8:06 PMJeremy Woods
08/13/2021, 8:43 PMtheapache64
08/13/2021, 8:44 PMJeremy Woods
08/13/2021, 8:46 PMpopUpToSavedState
and restoreSavedState
APIs we added for multiple back stacks. https://developer.android.com/guide/navigation/navigation-navigate#savestatetheapache64
08/13/2021, 8:48 PMJeremy Woods
08/13/2021, 9:09 PMtheapache64
08/13/2021, 9:10 PMtheapache64
08/15/2021, 9:59 AMtheapache64
08/15/2021, 10:28 AMtheapache64
08/15/2021, 12:13 PM