From 4678938511073c7308a91b35b0744b761bea7c1d Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 13 Feb 2022 17:58:07 +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 --- .../legado/app/ui/book/read/page/provider/ChapterProvider.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 3f1c66ff0..dc01a6e03 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 @@ -286,8 +286,8 @@ object ChapterProvider { ) var durY = when { //标题y轴居中 - isTitleWithNoContent -> ((visibleHeight - layout.lineCount * textPaint.textHeight) / 2) - isTitle -> y + titleTopSpacing + y == 0f && isTitleWithNoContent -> ((visibleHeight - layout.lineCount * textPaint.textHeight) / 2) + y == 0f && isTitle -> y + titleTopSpacing else -> y } for (lineIndex in 0 until layout.lineCount) {