|
|
@ -133,10 +133,12 @@ object ReadBook { |
|
|
|
callBack?.upContent() |
|
|
|
callBack?.upContent() |
|
|
|
} |
|
|
|
} |
|
|
|
loadContent(durChapterIndex.plus(1), upContent, false) |
|
|
|
loadContent(durChapterIndex.plus(1), upContent, false) |
|
|
|
GlobalScope.launch(Dispatchers.IO) { |
|
|
|
if (AppConfig.preDownload) { |
|
|
|
for (i in 2..10) { |
|
|
|
GlobalScope.launch(Dispatchers.IO) { |
|
|
|
delay(100) |
|
|
|
for (i in 2..9) { |
|
|
|
download(durChapterIndex + i) |
|
|
|
delay(1000) |
|
|
|
|
|
|
|
download(durChapterIndex + i) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -163,10 +165,12 @@ object ReadBook { |
|
|
|
callBack?.upContent() |
|
|
|
callBack?.upContent() |
|
|
|
} |
|
|
|
} |
|
|
|
loadContent(durChapterIndex.minus(1), upContent, false) |
|
|
|
loadContent(durChapterIndex.minus(1), upContent, false) |
|
|
|
GlobalScope.launch(Dispatchers.IO) { |
|
|
|
if (AppConfig.preDownload) { |
|
|
|
for (i in -5..-2) { |
|
|
|
GlobalScope.launch(Dispatchers.IO) { |
|
|
|
delay(100) |
|
|
|
for (i in 2..9) { |
|
|
|
download(durChapterIndex + i) |
|
|
|
delay(1000) |
|
|
|
|
|
|
|
download(durChapterIndex - i) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|