From 3b9dd18a92b60c87d297b5e0b57a24307b8ee3f1 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 19 Jul 2020 11:02:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/service/help/ReadBook.kt | 3 +++ 1 file changed, 3 insertions(+) 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 =