@ -176,6 +176,7 @@ object ChapterProvider {
x = x1
}
textLine.lineBottom = textLine.lineBottom + titlePaint.fontMetrics.descent
durY += paragraphSpacing
return durY
@ -286,6 +287,7 @@ object ChapterProvider {
textLine.lineBottom = textLine.lineBottom + contentPaint.fontMetrics.descent
@ -104,9 +104,9 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at
if (it.selected) {
canvas.drawRect(
it.leftBottomPosition.x,
it.rightTopPosition.y,
textLine.lineTop,
it.rightTopPosition.x,
it.leftBottomPosition.y,
textLine.lineBottom,
selectedPaint
)