feat: 优化代码

pull/141/head
kunfei 5 years ago
parent ae5823abe3
commit 657f9181bf
  1. 4
      app/src/main/java/io/legado/app/ui/book/read/page/ChapterProvider.kt

@ -142,11 +142,9 @@ object ChapterProvider {
textPages.last().textLines.add(textLine)
textLine.upTopBottom(durY, textPaint)
durY += textPaint.textHeight * lineSpacingExtra / 10f
if (isTitle) {
durY += titleBottomSpacing
}
textPages.last().height = durY
}
if (isTitle) durY += titleBottomSpacing
durY += textPaint.textHeight * paragraphSpacing / 10f
return durY
}

Loading…
Cancel
Save