diff --git a/app/src/main/java/io/legado/app/service/help/ReadBook.kt b/app/src/main/java/io/legado/app/service/help/ReadBook.kt index fee3cc715..a7691b5b9 100644 --- a/app/src/main/java/io/legado/app/service/help/ReadBook.kt +++ b/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.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.ImageProvider import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.delay @@ -49,6 +50,7 @@ object ReadBook { nextTextChapter = null titleDate.postValue(book.name) upWebBook(book) + ImageProvider.clearAllCache() } fun upWebBook(book: Book) { @@ -316,6 +318,7 @@ object ReadBook { callBack?.upView() curPageChanged() callBack?.contentLoadFinish() + ImageProvider.clearOut(durChapterIndex) } durChapterIndex - 1 -> { prevTextChapter =