|
|
@ -206,7 +206,8 @@ data class Book( |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun getPageAnim(): Int { |
|
|
|
fun getPageAnim(): Int { |
|
|
|
var pageAnim = config.pageAnim ?: ReadBookConfig.pageAnim |
|
|
|
var pageAnim = config.pageAnim |
|
|
|
|
|
|
|
?: if (type == BookType.image) 3 else ReadBookConfig.pageAnim |
|
|
|
if (pageAnim < 0) { |
|
|
|
if (pageAnim < 0) { |
|
|
|
pageAnim = ReadBookConfig.pageAnim |
|
|
|
pageAnim = ReadBookConfig.pageAnim |
|
|
|
} |
|
|
|
} |
|
|
@ -219,6 +220,7 @@ data class Book( |
|
|
|
|
|
|
|
|
|
|
|
fun getImageStyle(): String? { |
|
|
|
fun getImageStyle(): String? { |
|
|
|
return config.imageStyle |
|
|
|
return config.imageStyle |
|
|
|
|
|
|
|
?: if (type == BookType.image) imgStyleFull else null |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun setTtsEngine(ttsEngine: String?) { |
|
|
|
fun setTtsEngine(ttsEngine: String?) { |
|
|
|