diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateJob.kt b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateJob.kt index ed1d6ff25..d109a6f50 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateJob.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateJob.kt @@ -30,9 +30,10 @@ class LibraryUpdateJob : Job() { JobRequest.NetworkType.CONNECTED JobRequest.Builder(TAG) - .setPeriodic(interval * 60 * 60 * 1000L) + .setPeriodic(interval * 60 * 60 * 1000L, 10 * 60 * 1000) .setRequiredNetworkType(wifiRestriction) .setRequiresCharging(acRestriction) + .setRequirementsEnforced(true) .setPersisted(true) .setUpdateCurrent(true) .build() diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/updater/UpdateCheckerJob.kt b/app/src/main/java/eu/kanade/tachiyomi/data/updater/UpdateCheckerJob.kt index b8bcf93f6..7f444ea69 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/updater/UpdateCheckerJob.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/updater/UpdateCheckerJob.kt @@ -45,8 +45,9 @@ class UpdateCheckerJob : Job() { fun setupTask() { JobRequest.Builder(TAG) - .setPeriodic(24 * 60 * 60 * 1000) + .setPeriodic(24 * 60 * 60 * 1000, 60 * 60 * 1000) .setRequiredNetworkType(JobRequest.NetworkType.CONNECTED) + .setRequirementsEnforced(true) .setPersisted(true) .setUpdateCurrent(true) .build()