robnik
06/07/2021, 7:43 PMIan Lake
06/07/2021, 7:58 PMrobnik
06/07/2021, 8:16 PMIan Lake
06/07/2021, 8:22 PMIan Lake
06/07/2021, 8:23 PMrobnik
06/07/2021, 9:02 PMnavController.currentBackStackEntryAsState()
. That will point to E if my stack is [B, E]. But how to test to see if B is the root of the current stack?robnik
06/07/2021, 9:02 PMIan Lake
06/07/2021, 10:00 PMIan Lake
06/07/2021, 10:00 PMmutableStateOf
and change it whenever an item is selectedShakil Karim
06/07/2021, 10:04 PMrobnik
06/07/2021, 10:13 PMtad
06/08/2021, 5:07 AMbackStackEntry.destination.hierarchy
to check the selected route. That returns a Sequence
of parent destinations in the graph.