mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-15 02:57:04 +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)
|
navController.previousBackStackEntry != null && currentDestination.none(navDestinations)
|
||||||
) {
|
) {
|
||||||
IconButton(
|
IconButton(
|
||||||
onClick = { if (!navController.popBackStack()) context.getActivity()?.finish() }
|
onClick = { if (!navController.navigateUp()) context.getActivity()?.finish() }
|
||||||
) {
|
) {
|
||||||
Icon(
|
Icon(
|
||||||
imageVector = Icons.AutoMirrored.Filled.ArrowBack,
|
imageVector = Icons.AutoMirrored.Filled.ArrowBack,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue