feat: 优化代码

pull/134/head^2
kunfei 5 years ago
parent 8cce205cbb
commit 479bfe0e7e
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/page/entities/TextPage.kt

@ -41,7 +41,7 @@ data class TextPage(
val char = textLine.text[i].toString()
val cw = StaticLayout.getDesiredWidth(char, ChapterProvider.contentPaint)
val x1 = x + cw
textLine.textChars.add(TextChar(charData = char, start = x, end = x1))
textLine.addTextChar(charData = char, start = x, end = x1)
x = x1
}
textLines.add(textLine)

Loading…
Cancel
Save