This commit is contained in:
Horis 2023-06-05 13:45:54 +08:00
parent 79218aba28
commit df95c09d8b

View File

@ -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