From 426a2d63666d34347e30fcdccd5bbe72c017a62b Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 26 Dec 2022 09:17:41 +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 --- app/src/main/java/io/legado/app/data/entities/Book.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/io/legado/app/data/entities/Book.kt b/app/src/main/java/io/legado/app/data/entities/Book.kt index 4e6656fad..9cb8364d1 100644 --- a/app/src/main/java/io/legado/app/data/entities/Book.kt +++ b/app/src/main/java/io/legado/app/data/entities/Book.kt @@ -6,10 +6,7 @@ import io.legado.app.constant.AppPattern import io.legado.app.constant.BookType import io.legado.app.constant.PageAnim import io.legado.app.data.appDb -import io.legado.app.help.book.BookHelp -import io.legado.app.help.book.ContentProcessor -import io.legado.app.help.book.isEpub -import io.legado.app.help.book.isImage +import io.legado.app.help.book.* import io.legado.app.help.config.AppConfig import io.legado.app.help.config.ReadBookConfig import io.legado.app.model.ReadBook @@ -217,7 +214,7 @@ data class Book( fun getImageStyle(): String? { return config.imageStyle - ?: if (isImage) imgStyleFull else null + ?: if (isImage || isPdf) imgStyleFull else null } fun setTtsEngine(ttsEngine: String?) {