mirror of
https://github.com/gedoor/legado.git
synced 2024-07-17 00:58:29 +08:00
优化
This commit is contained in:
parent
79218aba28
commit
df95c09d8b
@ -241,7 +241,7 @@ object ChapterProvider {
|
||||
if (durY > visibleHeight) {
|
||||
val textPage = textPages.last()
|
||||
textPage.height = durY
|
||||
textPage.text = stringBuilder.toString()
|
||||
textPage.text = stringBuilder.toString().ifEmpty { "本页无文字内容" }
|
||||
stringBuilder.clear()
|
||||
textPages.add(TextPage())
|
||||
durY = 0f
|
||||
@ -266,7 +266,7 @@ object ChapterProvider {
|
||||
if (durY + height > visibleHeight) {
|
||||
val textPage = textPages.last()
|
||||
textPage.height = durY
|
||||
textPage.text = stringBuilder.toString()
|
||||
textPage.text = stringBuilder.toString().ifEmpty { "本页无文字内容" }
|
||||
stringBuilder.clear()
|
||||
textPages.add(TextPage())
|
||||
durY = 0f
|
||||
|
Loading…
Reference in New Issue
Block a user