|
|
@ -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) |
|
|
|