From 2ce8f544f3d88208106c4efb7f61fc585ff1cb69 Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 13 Apr 2020 01:07:23 -0400 Subject: [PATCH] Setting foreground extensions check to 6 hours --- app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 9e53893e48..0dfede35f2 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 @@ -334,7 +334,7 @@ open class MainActivity : BaseActivity(), DownloadServiceListener { } private fun getExtensionUpdates() { - if (Date().time >= preferences.lastExtCheck().getOrDefault() + TimeUnit.HOURS.toMillis(1)) { + if (Date().time >= preferences.lastExtCheck().getOrDefault() + TimeUnit.HOURS.toMillis(6)) { GlobalScope.launch(Dispatchers.IO) { val preferences: PreferencesHelper by injectLazy() try {