From 217883d9deb4016acabe67232da0b70a97935fb9 Mon Sep 17 00:00:00 2001 From: gedoor Date: Thu, 2 Dec 2021 22:26:13 +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 --- .../main/java/io/legado/app/ui/book/read/ReadBookActivity.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt index 755ddade9..4c8f48f62 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt @@ -21,6 +21,7 @@ import io.legado.app.data.entities.Book import io.legado.app.data.entities.BookChapter import io.legado.app.data.entities.BookProgress import io.legado.app.data.entities.BookSource +import io.legado.app.help.BookHelp import io.legado.app.help.IntentData import io.legado.app.help.ReadBookConfig import io.legado.app.help.ReadTipConfig @@ -255,6 +256,9 @@ class ReadBookActivity : BaseReadBookActivity(), TextDialog(ReadBook.curTextChapter?.getContent()) ) R.id.menu_update_toc -> ReadBook.book?.let { + if (it.isEpub()) { + BookHelp.clearCache(it) + } loadChapterList(it) } R.id.menu_enable_replace -> ReadBook.book?.let {