mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 22:17:03 +05:30
fix: prevent navigation bugs with back button
This commit is contained in:
parent
baebc56ab1
commit
c2b58dbe58
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ fun LobstersPostsScreen(
|
|||
navController.previousBackStackEntry != null && currentDestination.none(navDestinations)
|
||||
) {
|
||||
IconButton(
|
||||
onClick = { if (!navController.popBackStack()) context.getActivity()?.finish() }
|
||||
onClick = { if (!navController.navigateUp()) context.getActivity()?.finish() }
|
||||
) {
|
||||
Icon(
|
||||
imageVector = Icons.AutoMirrored.Filled.ArrowBack,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue