pull/1463/head^2
gedoor 3 years ago
parent df0a3239cc
commit 217883d9de
  1. 4
      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 {

Loading…
Cancel
Save