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