From e2582c9452111fcaeb7c163e33a3ca7064a11294 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 27 Aug 2019 15:29:53 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/readbook/ReadBookViewModel.kt | 6 +++++- 1 file changed, 5 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 83605f9cd..c417a3fe6 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 @@ -199,9 +199,13 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) { fun saveRead() { execute { bookData.value?.let { book -> + book.durChapterTime = System.currentTimeMillis() book.durChapterIndex = durChapterIndex book.durChapterPos = durPageIndex - App.db.bookDao().update(book) + curTextChapter?.let { + book.durChapterTitle = it.title + App.db.bookDao().update(book) + } } } }