From 144f52fd595625c761cf305238330ff9030d33b2 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 13 Feb 2022 19:31:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E9=A2=98=E5=8D=95=E7=8B=AC=E7=BB=98?= =?UTF-8?q?=E5=88=B6?= 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, 1 insertion(+), 1 deletion(-) 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 ee88867b5..a289e04b5 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 @@ -291,7 +291,7 @@ object ChapterProvider { val textPage = textPages.last() if (textPage.lineSize == 0) { val ty = (visibleHeight - layout.lineCount * textPaint.textHeight) / 2 - if (ty > 0) ty else titleTopSpacing.toFloat() + if (ty > titleTopSpacing) ty else titleTopSpacing.toFloat() } else { var textLayoutHeight = layout.lineCount * textPaint.textHeight val fistLine = textPage.getLine(0)