mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-17 15:32:01 +00:00
Merge pull request #1063 from VenusIsJaded/fix/profile-back-closes-app
fix: back button on profile screens closes app instead of navigating back
This commit is contained in:
commit
c896c06fc8
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