From 7db6df1ea7c084368a2d6edd7de2386ce6bd5ae8 Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 28 Jul 2020 22:43:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/ui/book/read/page/provider/ChapterProvider.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt index 969d4830e..ccfe10564 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt @@ -124,6 +124,7 @@ object ChapterProvider { var durY = y ImageProvider.getImage(book, chapter.index, src)?.let { if (durY > visibleHeight) { + textPages.last().height = durY textPages.add(TextPage()) durY = 0f } @@ -144,6 +145,7 @@ object ChapterProvider { height = visibleHeight } if (durY + height > visibleHeight) { + textPages.last().height = durY textPages.add(TextPage()) durY = 0f }