feat: 优化代码

pull/142/head^2
kunfei 5 years ago
parent 12e779c68c
commit 0325ce00e4
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/page/ChapterProvider.kt

@ -50,7 +50,7 @@ object ChapterProvider {
val pageLines = arrayListOf<Int>() val pageLines = arrayListOf<Int>()
val pageLengths = arrayListOf<Int>() val pageLengths = arrayListOf<Int>()
val stringBuilder = StringBuilder() val stringBuilder = StringBuilder()
val contents = content.split("\n") val contents = content.splitNotBlank("\n")
var durY = 0f var durY = 0f
textPages.add(TextPage()) textPages.add(TextPage())
for ((index, text) in contents.withIndex()) { for ((index, text) in contents.withIndex()) {

Loading…
Cancel
Save