feat: 优化代码

pull/106/head
kunfei 5 years ago
parent b2b68378f8
commit 530eea9374
  1. 4
      app/src/main/java/io/legado/app/ui/book/read/page/ChapterProvider.kt

@ -105,7 +105,7 @@ object ChapterProvider {
if (durY < visibleHeight) {
textPages.last().textLines.add(textLine)
} else {
durY = 0
durY = layout.getLineBottom(lineIndex) - layout.getLineTop(lineIndex)
textPages.add(TextPage())
textPages.last().textLines.add(textLine)
}
@ -182,7 +182,7 @@ object ChapterProvider {
if (durY < visibleHeight) {
textPages.last().textLines.add(textLine)
} else {
durY = 0
durY = layout.getLineBottom(lineIndex) - layout.getLineTop(lineIndex)
textPages.add(TextPage())
textPages.last().textLines.add(textLine)
}

Loading…
Cancel
Save