pull/279/head
gedoor 4 years ago
parent 137c39211c
commit 7db6df1ea7
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt

@ -124,6 +124,7 @@ object ChapterProvider {
var durY = y var durY = y
ImageProvider.getImage(book, chapter.index, src)?.let { ImageProvider.getImage(book, chapter.index, src)?.let {
if (durY > visibleHeight) { if (durY > visibleHeight) {
textPages.last().height = durY
textPages.add(TextPage()) textPages.add(TextPage())
durY = 0f durY = 0f
} }
@ -144,6 +145,7 @@ object ChapterProvider {
height = visibleHeight height = visibleHeight
} }
if (durY + height > visibleHeight) { if (durY + height > visibleHeight) {
textPages.last().height = durY
textPages.add(TextPage()) textPages.add(TextPage())
durY = 0f durY = 0f
} }

Loading…
Cancel
Save