pull/1705/head
kunfei 3 years ago
parent 865b96ba8d
commit bf40ba3546
  1. 1
      app/src/main/assets/updateLog.md
  2. 4
      app/src/main/java/io/legado/app/data/entities/Book.kt

@ -16,6 +16,7 @@
* 存储变量长度超过10000直接存储到文件,防止书籍太大备份失败 * 存储变量长度超过10000直接存储到文件,防止书籍太大备份失败
* 编辑源辅助输入支持自定义 * 编辑源辅助输入支持自定义
* 引入compose包 * 引入compose包
* 书源类型为image的书源,翻译默认为滚动,图片样式默认为FULL
**2022/03/09** **2022/03/09**

@ -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?) {

Loading…
Cancel
Save