From bf1fb8b7bdcf14f4745546e9f20abb9d633f9183 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 28 Mar 2020 13:40:02 -0400 Subject: [PATCH] Limit foreground extension checks to once a day --- app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt index c91d98d72c..0345cc1d96 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt @@ -165,9 +165,9 @@ class MainActivity : BaseActivity() { } private fun getExtensionUpdates() { - // Limit checks to once every 2 hours at most + // Limit checks to once a day at most val now = Date().time - if (now < preferences.lastExtCheck().getOrDefault() + TimeUnit.HOURS.toMillis(2)) { + if (now < preferences.lastExtCheck().getOrDefault() + TimeUnit.DAYS.toMillis(1)) { return }