pull/1903/head
kunfei 3 years ago
parent 5d2395a52f
commit 0962747d78
  1. 1
      app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt

@ -120,6 +120,7 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) {
if (book.isLocalBook()) { if (book.isLocalBook()) {
execute { execute {
LocalBook.getChapterList(book).let { LocalBook.getChapterList(book).let {
book.latestChapterTime = System.currentTimeMillis()
appDb.bookChapterDao.delByBook(book.bookUrl) appDb.bookChapterDao.delByBook(book.bookUrl)
appDb.bookChapterDao.insert(*it.toTypedArray()) appDb.bookChapterDao.insert(*it.toTypedArray())
appDb.bookDao.update(book) appDb.bookDao.update(book)

Loading…
Cancel
Save