pull/1576/head^2
kunfei 3 years ago
parent 029ef5eda3
commit 69243cad76
  1. 2
      app/src/main/java/io/legado/app/model/localBook/TextFile.kt

@ -126,7 +126,7 @@ class TextFile(private val book: Book) {
val chapterContent = blockContent.substring(seekPos, chapterStart) val chapterContent = blockContent.substring(seekPos, chapterStart)
val chapterLength = chapterContent.toByteArray(charset).size val chapterLength = chapterContent.toByteArray(charset).size
val lastStart = toc.lastOrNull()?.start ?: curOffset val lastStart = toc.lastOrNull()?.start ?: curOffset
if (curOffset + chapterLength - lastStart > 50000) { if (curOffset + chapterLength - lastStart > 102400) {
bis.close() bis.close()
return analyze() return analyze()
} }

Loading…
Cancel
Save