From 530eea937416bbe7f2359f2a2dbe6fa2c858f702 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 20 Feb 2020 19:21:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/book/read/page/ChapterProvider.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/ChapterProvider.kt b/app/src/main/java/io/legado/app/ui/book/read/page/ChapterProvider.kt index 9fadd4f06..60a093537 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/ChapterProvider.kt +++ b/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) }