diff --git a/app/build.gradle.kts b/app/build.gradle.kts index cdd2f5c9f..f38093944 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -29,7 +29,7 @@ android { minSdk = AndroidConfig.minSdk targetSdk = AndroidConfig.targetSdk testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" - versionCode = 70 + versionCode = 71 versionName = "0.12.3" buildConfigField("String", "COMMIT_COUNT", "\"${getCommitCount()}\"") diff --git a/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt b/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt index a68762fa8..fe4d13a51 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt @@ -235,6 +235,14 @@ object Migrations { preferences.enabledLanguages() += "all" } } + if (oldVersion < 71) { + // Handle removed every 3, 4, 6, and 8 hour library updates + val updateInterval = preferences.libraryUpdateInterval().get() + if (updateInterval in listOf(3, 4, 6, 8)) { + preferences.libraryUpdateInterval().set(12) + LibraryUpdateJob.setupTask(context, 12) + } + } return true } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsLibraryController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsLibraryController.kt index 6e4fd5c8c..a8e98b323 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsLibraryController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsLibraryController.kt @@ -139,16 +139,13 @@ class SettingsLibraryController : SettingsController() { titleRes = R.string.pref_library_update_interval entriesRes = arrayOf( R.string.update_never, - R.string.update_3hour, - R.string.update_4hour, - R.string.update_6hour, - R.string.update_8hour, R.string.update_12hour, R.string.update_24hour, R.string.update_48hour, + R.string.update_72hour, R.string.update_weekly ) - entryValues = arrayOf("0", "3", "4", "6", "8", "12", "24", "48", "168") + entryValues = arrayOf("0", "12", "24", "48", "72", "168") defaultValue = "24" summary = "%s" diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 1ef9c7bb4..d87ecd186 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -211,13 +211,11 @@ Global update Update frequency Manual - Every 3 hours - Every 4 hours Every 6 hours - Every 8 hours Every 12 hours Daily Every 2 days + Every 3 days Weekly Update order Update restrictions