优化
This commit is contained in:
@@ -238,7 +238,6 @@ data class Book(
|
||||
|
||||
fun getImageStyle(): String? {
|
||||
return config.imageStyle
|
||||
?: if (isImage || isPdf) imgStyleFull else null
|
||||
}
|
||||
|
||||
fun setTtsEngine(ttsEngine: String?) {
|
||||
|
||||
@@ -170,8 +170,7 @@ object ReadBook : CoroutineScope by MainScope() {
|
||||
} else {
|
||||
appDb.bookSourceDao.getBookSource(book.origin)?.let {
|
||||
bookSource = it
|
||||
val readConfig = book.readConfig ?: return@let
|
||||
if (readConfig.imageStyle.isNullOrBlank()) {
|
||||
if (book.getImageStyle().isNullOrBlank()) {
|
||||
var imageStyle = it.getContentRule().imageStyle
|
||||
if (imageStyle.isNullOrBlank() && (book.isImage || book.isPdf)) {
|
||||
imageStyle = Book.imgStyleFull
|
||||
|
||||
Reference in New Issue
Block a user