From dd1a19745a0a9df3814f22dd597585e44d3cba35 Mon Sep 17 00:00:00 2001 From: arkon Date: Fri, 15 Dec 2023 18:43:48 -0500 Subject: [PATCH] Remove redundant job setup calls in migrations We always set them up earlier in the migrations anyway. --- .../main/java/eu/kanade/tachiyomi/Migrations.kt | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt b/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt index f5f6c4f81c..60e85547fd 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt @@ -66,10 +66,6 @@ object Migrations { val prefs = PreferenceManager.getDefaultSharedPreferences(context) - if (oldVersion < 14) { - // Restore jobs after upgrading to Evernote's job scheduler. - LibraryUpdateJob.setupTask(context) - } if (oldVersion < 15) { // Delete internal chapter cache dir. File(context.cacheDir, "chapter_disk_cache").deleteRecursively() @@ -96,11 +92,6 @@ object Migrations { } } } - if (oldVersion < 43) { - // Restore jobs after migrating from Evernote's job scheduler to WorkManager. - LibraryUpdateJob.setupTask(context) - BackupCreateJob.setupTask(context) - } if (oldVersion < 44) { // Reset sorting preference if using removed sort by source val oldSortingMode = prefs.getInt(libraryPreferences.sortingMode().key(), 0) @@ -259,9 +250,6 @@ object Migrations { basePreferences.extensionInstaller().set(BasePreferences.ExtensionInstaller.LEGACY) } } - if (oldVersion < 76) { - BackupCreateJob.setupTask(context) - } if (oldVersion < 77) { val oldReaderTap = prefs.getBoolean("reader_tap", false) if (!oldReaderTap) { @@ -374,9 +362,6 @@ object Migrations { } } } - if (oldVersion < 100) { - BackupCreateJob.setupTask(context) - } if (oldVersion < 105) { val pref = libraryPreferences.autoUpdateDeviceRestrictions() if (pref.isSet() && "battery_not_low" in pref.get()) {