pull/32/head
kunfei 5 years ago
parent ebb33769ec
commit e2582c9452
  1. 6
      app/src/main/java/io/legado/app/ui/readbook/ReadBookViewModel.kt

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

Loading…
Cancel
Save