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)