mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-09 16:17:44 +00:00
fix issues with color screen navigation
This commit is contained in:
parent
63bda02cc4
commit
bd7e92bcf8
1 changed files with 2 additions and 2 deletions
|
@ -38,8 +38,6 @@ fun SettingsNavHost(
|
|||
fun goBack() {
|
||||
if (!navController.popBackStack()) onClickBack()
|
||||
}
|
||||
if (target.value != SettingsDestination.Settings)
|
||||
navController.navigate(route = target.value)
|
||||
|
||||
NavHost(
|
||||
navController = navController,
|
||||
|
@ -102,6 +100,8 @@ fun SettingsNavHost(
|
|||
ColorsScreen(isNight = true, onClickBack = ::goBack)
|
||||
}
|
||||
}
|
||||
if (target.value != SettingsDestination.Settings)
|
||||
navController.navigate(route = target.value)
|
||||
}
|
||||
|
||||
object SettingsDestination {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue