Skip to content

Commit

Permalink
refactor: remove extra check in showBack
Browse files Browse the repository at this point in the history
  • Loading branch information
jarnedemeulemeester committed Dec 8, 2024
1 parent 2d27689 commit e13e605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/phone/src/main/java/dev/jdtech/jellyfin/NavigationRoot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ fun NavigationRoot(
onBackClick = {
navController.safePopBackStack()
},
showBack = navController.previousBackStackEntry != null && navController.previousBackStackEntry != backStackEntry,
showBack = navController.previousBackStackEntry != null,
)
}
composable<AddServerRoute> {
Expand Down Expand Up @@ -107,7 +107,7 @@ fun NavigationRoot(
onBackClick = {
navController.safePopBackStack()
},
showBack = navController.previousBackStackEntry != null && navController.previousBackStackEntry != backStackEntry,
showBack = navController.previousBackStackEntry != null,
)
}
composable<LoginRoute> {
Expand Down

0 comments on commit e13e605

Please sign in to comment.