Change settings screen to object (#8604)

This commit is contained in:
Ivan Iskandar
2022-11-23 21:14:55 +07:00
committed by GitHub
parent e2179a6669
commit 7d34ff214c
14 changed files with 150 additions and 152 deletions
@@ -45,9 +45,9 @@ class SettingsMainController(bundle: Bundle = bundleOf()) : BasicFullComposeCont
if (!isTabletUi) {
Navigator(
screen = if (toBackupScreen) {
SettingsBackupScreen()
SettingsBackupScreen
} else if (toAboutScreen) {
AboutScreen()
AboutScreen
} else {
SettingsMainScreen
},
@@ -63,11 +63,11 @@ class SettingsMainController(bundle: Bundle = bundleOf()) : BasicFullComposeCont
} else {
Navigator(
screen = if (toBackupScreen) {
SettingsBackupScreen()
SettingsBackupScreen
} else if (toAboutScreen) {
AboutScreen()
AboutScreen
} else {
SettingsGeneralScreen()
SettingsGeneralScreen
},
) {
TwoPanelBox(