This commit is contained in:
kunfei committed 2022-03-12 18:41:07 +08:00
1 parent 5b89b4b2b8
commit e1500f352e
2 files changed
+4 -1

No files matched your search

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