浏览代码

Limit foreground extension checks to once a day

arkon 5 年之前
父节点
当前提交
bf1fb8b7bd
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt

+ 2 - 2
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
         }