mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 19:57:04 +05:30
fix(android): check for previous back stack entry
This commit is contained in:
parent
5206851b22
commit
02575a917b
1 changed files with 4 additions and 1 deletions
|
@ -138,7 +138,10 @@ fun LobstersApp(
|
|||
topBar = {
|
||||
ClawAppBar(
|
||||
navigationIcon = {
|
||||
if (navItems.none { it.route == currentDestination }) {
|
||||
if (
|
||||
navController.previousBackStackEntry != null &&
|
||||
navItems.none { it.route == currentDestination }
|
||||
) {
|
||||
IconButton(
|
||||
onClick = { if (!navController.popBackStack()) context.getActivity()?.finish() }
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue