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

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

Loading…
Cancel
Save