Rename "Backup and restore" settings screen to "Data and storage"
We can house more things in here in the future, like: - A unified storage location setting (with scoped storage) - Sync - Disk usage info
This commit is contained in:
@@ -13,7 +13,7 @@ import cafe.adriel.voyager.navigator.LocalNavigator
|
||||
import cafe.adriel.voyager.navigator.Navigator
|
||||
import cafe.adriel.voyager.navigator.currentOrThrow
|
||||
import eu.kanade.presentation.more.settings.screen.SettingsAppearanceScreen
|
||||
import eu.kanade.presentation.more.settings.screen.SettingsBackupScreen
|
||||
import eu.kanade.presentation.more.settings.screen.SettingsDataScreen
|
||||
import eu.kanade.presentation.more.settings.screen.SettingsMainScreen
|
||||
import eu.kanade.presentation.more.settings.screen.about.AboutScreen
|
||||
import eu.kanade.presentation.util.DefaultNavigatorScreenTransition
|
||||
@@ -23,7 +23,7 @@ import eu.kanade.presentation.util.isTabletUi
|
||||
import tachiyomi.presentation.core.components.TwoPanelBox
|
||||
|
||||
class SettingsScreen private constructor(
|
||||
val toBackup: Boolean,
|
||||
val toDataAndStorage: Boolean,
|
||||
val toAbout: Boolean,
|
||||
) : Screen() {
|
||||
|
||||
@@ -32,8 +32,8 @@ class SettingsScreen private constructor(
|
||||
val parentNavigator = LocalNavigator.currentOrThrow
|
||||
if (!isTabletUi()) {
|
||||
Navigator(
|
||||
screen = if (toBackup) {
|
||||
SettingsBackupScreen
|
||||
screen = if (toDataAndStorage) {
|
||||
SettingsDataScreen
|
||||
} else if (toAbout) {
|
||||
AboutScreen
|
||||
} else {
|
||||
@@ -54,8 +54,8 @@ class SettingsScreen private constructor(
|
||||
)
|
||||
} else {
|
||||
Navigator(
|
||||
screen = if (toBackup) {
|
||||
SettingsBackupScreen
|
||||
screen = if (toDataAndStorage) {
|
||||
SettingsDataScreen
|
||||
} else if (toAbout) {
|
||||
AboutScreen
|
||||
} else {
|
||||
@@ -79,10 +79,10 @@ class SettingsScreen private constructor(
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun toMainScreen() = SettingsScreen(toBackup = false, toAbout = false)
|
||||
fun toMainScreen() = SettingsScreen(toDataAndStorage = false, toAbout = false)
|
||||
|
||||
fun toBackupScreen() = SettingsScreen(toBackup = true, toAbout = false)
|
||||
fun toDataAndStorageScreen() = SettingsScreen(toDataAndStorage = true, toAbout = false)
|
||||
|
||||
fun toAboutScreen() = SettingsScreen(toBackup = false, toAbout = true)
|
||||
fun toAboutScreen() = SettingsScreen(toDataAndStorage = false, toAbout = true)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user