Always attempt automatic backup creation

- Defaults to every 12 hours
- Minimum number of backups is now 2, just to offer some level of redundancy in case something happens
- If it's missing storage permissions, it'll fail but that's the user's loss if they somehow haven't granted that permission yet

# Conflicts:
#	app/build.gradle.kts
#	app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupManager.kt
This commit is contained in:
arkon
2022-09-15 22:53:46 -04:00
committed by Jobobby04
parent 22b6231a68
commit a27b25f7c6
7 changed files with 30 additions and 10 deletions
+9
View File
@@ -448,6 +448,15 @@ object EXHMigrations {
remove("library_sorting_ascending")
}
}
if (oldVersion under 40) {
if (preferences.numberOfBackups().get() == 1) {
preferences.numberOfBackups().set(2)
}
if (preferences.backupInterval().get() == 0) {
preferences.backupInterval().set(12)
BackupCreatorJob.setupTask(context)
}
}
// if (oldVersion under 1) { } (1 is current release version)
// do stuff here when releasing changed crap