mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-17 07:21:58 +00:00
fix: back button on profile screens closes app instead of navigating back
closes #1058
This commit is contained in:
parent
37203d1fc1
commit
5de09e1fa6
1 changed files with 8 additions and 0 deletions
|
|
@ -467,6 +467,11 @@ fun App() {
|
|||
AuthScreen(modifier = Modifier.fillMaxSize())
|
||||
}
|
||||
AppGateScreen.ProfileSelection.name -> {
|
||||
PlatformBackHandler(enabled = gateScreen == AppGateScreen.ProfileSelection.name) {
|
||||
if (!autoSkipProfileSelection) {
|
||||
gateScreen = AppGateScreen.Main.name
|
||||
}
|
||||
}
|
||||
ProfileSelectionScreen(
|
||||
onProfileSelected = { profile ->
|
||||
ProfileRepository.selectProfile(profile.profileIndex)
|
||||
|
|
@ -489,6 +494,9 @@ fun App() {
|
|||
)
|
||||
}
|
||||
AppGateScreen.ProfileEdit.name -> {
|
||||
PlatformBackHandler(enabled = gateScreen == AppGateScreen.ProfileEdit.name) {
|
||||
gateScreen = AppGateScreen.ProfileSelection.name
|
||||
}
|
||||
ProfileEditScreen(
|
||||
profile = editingProfile,
|
||||
onBack = { gateScreen = AppGateScreen.ProfileSelection.name },
|
||||
|
|
|
|||
Loading…
Reference in a new issue