diff --git a/app/src/main/java/io/legado/app/ui/readbook/ReadBookViewModel.kt b/app/src/main/java/io/legado/app/ui/readbook/ReadBookViewModel.kt index f472024f4..e6090b873 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/ReadBookViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/ReadBookViewModel.kt @@ -238,13 +238,14 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) { fun saveRead() { execute { bookData.value?.let { book -> + book.lastCheckCount = 0 book.durChapterTime = System.currentTimeMillis() book.durChapterIndex = durChapterIndex book.durChapterPos = durPageIndex curTextChapter?.let { book.durChapterTitle = it.title - App.db.bookDao().update(book) } + App.db.bookDao().update(book) } } }