feat: 优化代码

pull/142/head^2
kunfei 5 years ago
parent 0325ce00e4
commit caffa332a7
  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.splitNotBlank("\n") val contents = content.split("\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