pull/981/head
gedoor 4 years ago
parent 1c09e1c2c7
commit 57f04955aa
  1. 4
      app/src/main/java/io/legado/app/ui/main/MainViewModel.kt

@ -119,11 +119,11 @@ class MainViewModel(application: Application) : BaseViewModel(application) {
if (!BookHelp.hasContent(book, chapter)) {
var addToCache = false
while (!addToCache) {
if (CacheBook.downloadCount() < 5) {
if (CacheBook.downloadCount() < 10) {
CacheBook.download(this, webBook, book, chapter)
addToCache = true
} else {
delay(1000)
delay(100)
}
}
}

Loading…
Cancel
Save