From 3ec4bef12ad98f9b15b6202803bc3fa1b1538d85 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 22 Oct 2022 20:37:20 +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/BookInfoActivity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt b/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt index ef34a006b..a9598f9fb 100644 --- a/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt @@ -515,8 +515,10 @@ class BookInfoActivity : override fun coverChangeTo(coverUrl: String) { viewModel.bookData.value?.let { book -> book.customCoverUrl = coverUrl - viewModel.saveBook(book) showCover(book) + if (viewModel.inBookshelf) { + viewModel.saveBook(book) + } } }