优化
This commit is contained in:
@@ -194,6 +194,7 @@ object ReadManga : CoroutineScope by MainScope() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun loadContent() {
|
fun loadContent() {
|
||||||
|
clearMangaChapter()
|
||||||
loadContent(durChapterIndex)
|
loadContent(durChapterIndex)
|
||||||
loadContent(durChapterIndex - 1)
|
loadContent(durChapterIndex - 1)
|
||||||
loadContent(durChapterIndex + 1)
|
loadContent(durChapterIndex + 1)
|
||||||
@@ -213,7 +214,7 @@ object ReadManga : CoroutineScope by MainScope() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun loadContent(index: Int) {
|
private fun loadContent(index: Int) {
|
||||||
if (addLoading(index)) {
|
if (addLoading(index)) {
|
||||||
Coroutine.async {
|
Coroutine.async {
|
||||||
val book = book!!
|
val book = book!!
|
||||||
|
|||||||
Reference in New Issue
Block a user