From 425260b6793a7841e2258ca1e2b381b1b4cc5b0f Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Fri, 7 Jul 2023 23:25:50 +0330 Subject: [PATCH] rename SettingsBackupScreen --- .../more/settings/screen/SettingsBackupAndSyncScreen.kt | 2 +- .../presentation/more/settings/screen/SettingsMainScreen.kt | 2 +- .../more/settings/screen/SettingsSearchScreen.kt | 2 +- .../java/eu/kanade/tachiyomi/ui/setting/SettingsScreen.kt | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsBackupAndSyncScreen.kt b/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsBackupAndSyncScreen.kt index 0de7e28cb..e659c7263 100644 --- a/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsBackupAndSyncScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsBackupAndSyncScreen.kt @@ -66,7 +66,7 @@ import tachiyomi.presentation.core.util.isScrolledToStart import uy.kohesive.injekt.Injekt import uy.kohesive.injekt.api.get -object SettingsBackupScreen : SearchableSettings { +object SettingsBackupAndSyncScreen : SearchableSettings { @ReadOnlyComposable @Composable diff --git a/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsMainScreen.kt b/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsMainScreen.kt index ade61865a..87bdc02ea 100644 --- a/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsMainScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsMainScreen.kt @@ -226,7 +226,7 @@ object SettingsMainScreen : Screen() { titleRes = R.string.label_backup_and_sync, subtitleRes = R.string.pref_backup_and_sync_summary, icon = Icons.Outlined.SettingsBackupRestore, - screen = SettingsBackupScreen, + screen = SettingsBackupAndSyncScreen, ), Item( titleRes = R.string.pref_category_security, diff --git a/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsSearchScreen.kt b/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsSearchScreen.kt index cad51c044..834be513b 100644 --- a/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsSearchScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsSearchScreen.kt @@ -290,7 +290,7 @@ private val settingScreens = listOf( SettingsDownloadScreen, SettingsTrackingScreen, SettingsBrowseScreen, - SettingsBackupScreen, + SettingsBackupAndSyncScreen, SettingsSecurityScreen, SettingsAdvancedScreen, ) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsScreen.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsScreen.kt index 8a18219ad..dd9cb2296 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsScreen.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsScreen.kt @@ -14,7 +14,7 @@ import cafe.adriel.voyager.navigator.Navigator import cafe.adriel.voyager.navigator.currentOrThrow import eu.kanade.presentation.more.settings.screen.AboutScreen import eu.kanade.presentation.more.settings.screen.SettingsAppearanceScreen -import eu.kanade.presentation.more.settings.screen.SettingsBackupScreen +import eu.kanade.presentation.more.settings.screen.SettingsBackupAndSyncScreen import eu.kanade.presentation.more.settings.screen.SettingsMainScreen import eu.kanade.presentation.util.DefaultNavigatorScreenTransition import eu.kanade.presentation.util.LocalBackPress @@ -33,7 +33,7 @@ class SettingsScreen private constructor( if (!isTabletUi()) { Navigator( screen = if (toBackup) { - SettingsBackupScreen + SettingsBackupAndSyncScreen } else if (toAbout) { AboutScreen } else { @@ -55,7 +55,7 @@ class SettingsScreen private constructor( } else { Navigator( screen = if (toBackup) { - SettingsBackupScreen + SettingsBackupAndSyncScreen } else if (toAbout) { AboutScreen } else {