From 4bf92cd994faaf43bad0f67204131db0c0d24167 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 9 Mar 2022 14:21:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/ui/book/info/BookInfoViewModel.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/info/BookInfoViewModel.kt b/app/src/main/java/io/legado/app/ui/book/info/BookInfoViewModel.kt index 91e41d0b6..a7b146dab 100644 --- a/app/src/main/java/io/legado/app/ui/book/info/BookInfoViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/info/BookInfoViewModel.kt @@ -77,7 +77,9 @@ class BookInfoViewModel(application: Application) : BaseViewModel(application) { BookCover.searchCover(book)?.let { coverUrl -> book.customCoverUrl = coverUrl bookData.postValue(book) - saveBook(book) + if (inBookshelf) { + saveBook(book) + } } } bookSource = if (book.isLocalBook()) {