Default automatic legacy backups to true for now

(cherry picked from commit eed6db8e9202dd5b632274206de498f0ccec5781)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt
This commit is contained in:
arkon 2020-11-21 15:12:04 -05:00 committed by Jobobby04
parent 978acec659
commit 692e7e17d8
2 changed files with 3 additions and 3 deletions

View File

@ -277,6 +277,8 @@ class PreferencesHelper(val context: Context) {
fun incognitoMode() = flowPrefs.getBoolean(Keys.incognitoMode, false)
fun createLegacyBackup() = flowPrefs.getBoolean(Keys.createLegacyBackup, true)
fun setChapterSettingsDefault(manga: Manga) {
prefs.edit {
putInt(Keys.defaultChapterFilterByRead, manga.readFilter)
@ -461,7 +463,5 @@ class PreferencesHelper(val context: Context) {
fun sortTagsForLibrary() = flowPrefs.getStringSet(Keys.sortTagsForLibrary, mutableSetOf())
fun createLegacyBackup() = flowPrefs.getBoolean(Keys.createLegacyBackup, false)
fun dontDeleteFromCategories() = flowPrefs.getStringSet(Keys.dontDeleteFromCategories, emptySet())
}

View File

@ -147,7 +147,7 @@ class SettingsBackupController : SettingsController() {
switchPreference {
key = Keys.createLegacyBackup
titleRes = R.string.pref_backup_auto_create_legacy
defaultValue = false
defaultValue = true
preferences.backupInterval().asImmediateFlow { isVisible = it > 0 }
.launchIn(scope)