标题单独绘制

pull/1625/head
kunfei 3 years ago
parent 3966db2087
commit 144f52fd59
  1. 2
      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)

Loading…
Cancel
Save