feat: 优化代码

pull/134/head^2
kunfei 5 years ago
parent 9e7a6750ae
commit 62cacd2379
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/page/ChapterProvider.kt

@ -134,8 +134,6 @@ object ChapterProvider {
textPages.last().height = durY
} else {
//当前页面结束,设置各种值
stringBuilder.append(words)
if (isLastLine) stringBuilder.append("\n")
textPages.last().text = stringBuilder.toString()
pageLines.add(textPages.last().textLines.size)
pageLengths.add(textPages.last().text.length)

Loading…
Cancel
Save