mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
* 存储变量长度超过10000直接存储到文件,防止书籍太大备份失败
|
||||
* 编辑源辅助输入支持自定义
|
||||
* 引入compose包
|
||||
* 书源类型为image的书源,翻译默认为滚动,图片样式默认为FULL
|
||||
|
||||
**2022/03/09**
|
||||
|
||||
|
||||
@@ -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?) {
|
||||
|
||||
Reference in New Issue
Block a user