pull/36/head
kunfei 5 years ago
parent e362ab2ad9
commit 11d7133f93
  1. 2
      app/src/main/java/io/legado/app/ui/book/info/BookInfoViewModel.kt

@ -129,7 +129,7 @@ class BookInfoViewModel(application: Application) : BaseViewModel(application) {
chapters chapters
) )
book.durChapterTitle = chapters[book.durChapterIndex].title book.durChapterTitle = chapters[book.durChapterIndex].title
App.db.bookDao().update(book) App.db.bookDao().insert(book)
App.db.bookChapterDao().insert(*chapters.toTypedArray()) App.db.bookChapterDao().insert(*chapters.toTypedArray())
bookData.postValue(book) bookData.postValue(book)
chapterListData.postValue(chapters) chapterListData.postValue(chapters)

Loading…
Cancel
Save