pull/32/head
kunfei 5 years ago
parent 33a0424a33
commit 7e586fc400
  1. 6
      app/src/main/java/io/legado/app/ui/bookinfo/BookInfoViewModel.kt

@ -82,6 +82,12 @@ class BookInfoViewModel(application: Application) : BaseViewModel(application) {
} }
fun changeTo(book: Book) { fun changeTo(book: Book) {
bookData.value?.let {
book.customCoverUrl = it.customCoverUrl
book.durChapterIndex = it.durChapterIndex
book.durChapterPos = it.durChapterPos
book.customIntro = it.customIntro
}
execute { execute {
if (inBookshelf) { if (inBookshelf) {
bookData.value?.let { bookData.value?.let {

Loading…
Cancel
Save