From ec6a43a3296b1add127a5813fb7961cf6f9fbc12 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 28 Aug 2019 09:47:14 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/readbook/ReadBookViewModel.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) } } }