|
|
@ -77,9 +77,11 @@ class BookInfoViewModel(application: Application) : BaseViewModel(application) { |
|
|
|
BookCover.searchCover(book)?.let { coverUrl -> |
|
|
|
BookCover.searchCover(book)?.let { coverUrl -> |
|
|
|
book.customCoverUrl = coverUrl |
|
|
|
book.customCoverUrl = coverUrl |
|
|
|
bookData.postValue(book) |
|
|
|
bookData.postValue(book) |
|
|
|
|
|
|
|
if (inBookshelf) { |
|
|
|
saveBook(book) |
|
|
|
saveBook(book) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
bookSource = if (book.isLocalBook()) { |
|
|
|
bookSource = if (book.isLocalBook()) { |
|
|
|
null |
|
|
|
null |
|
|
|
} else { |
|
|
|
} else { |
|
|
|