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) {