pull/276/head 3.20.071911
gedoor 4 years ago
parent 2e10d3fcff
commit 3b9dd18a92
  1. 3
      app/src/main/java/io/legado/app/service/help/ReadBook.kt

@ -15,6 +15,7 @@ import io.legado.app.model.WebBook
import io.legado.app.service.BaseReadAloudService import io.legado.app.service.BaseReadAloudService
import io.legado.app.ui.book.read.page.entities.TextChapter import io.legado.app.ui.book.read.page.entities.TextChapter
import io.legado.app.ui.book.read.page.provider.ChapterProvider import io.legado.app.ui.book.read.page.provider.ChapterProvider
import io.legado.app.ui.book.read.page.provider.ImageProvider
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay import kotlinx.coroutines.delay
@ -49,6 +50,7 @@ object ReadBook {
nextTextChapter = null nextTextChapter = null
titleDate.postValue(book.name) titleDate.postValue(book.name)
upWebBook(book) upWebBook(book)
ImageProvider.clearAllCache()
} }
fun upWebBook(book: Book) { fun upWebBook(book: Book) {
@ -316,6 +318,7 @@ object ReadBook {
callBack?.upView() callBack?.upView()
curPageChanged() curPageChanged()
callBack?.contentLoadFinish() callBack?.contentLoadFinish()
ImageProvider.clearOut(durChapterIndex)
} }
durChapterIndex - 1 -> { durChapterIndex - 1 -> {
prevTextChapter = prevTextChapter =

Loading…
Cancel
Save