pull/32/head
kunfei 5 years ago
parent f6212972d5
commit ec6a43a329
  1. 3
      app/src/main/java/io/legado/app/ui/readbook/ReadBookViewModel.kt

@ -238,13 +238,14 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) {
fun saveRead() { fun saveRead() {
execute { execute {
bookData.value?.let { book -> bookData.value?.let { book ->
book.lastCheckCount = 0
book.durChapterTime = System.currentTimeMillis() book.durChapterTime = System.currentTimeMillis()
book.durChapterIndex = durChapterIndex book.durChapterIndex = durChapterIndex
book.durChapterPos = durPageIndex book.durChapterPos = durPageIndex
curTextChapter?.let { curTextChapter?.let {
book.durChapterTitle = it.title book.durChapterTitle = it.title
App.db.bookDao().update(book)
} }
App.db.bookDao().update(book)
} }
} }
} }

Loading…
Cancel
Save