pull/274/head
gedoor 4 years ago
parent 8c3f620929
commit 78948786ac
  1. 2
      app/src/main/java/io/legado/app/model/localBook/AnalyzeTxtFile.kt
  2. 9
      app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt

@ -204,7 +204,7 @@ class AnalyzeTxtFile {
val bean = toc[i] val bean = toc[i]
bean.index = i bean.index = i
bean.bookUrl = book.bookUrl bean.bookUrl = book.bookUrl
bean.url = (MD5Utils.md5Encode16(book.originName + i + bean.title) ?: "") bean.url = (MD5Utils.md5Encode16(book.originName + i + bean.title))
} }
book.latestChapterTitle = toc.last().title book.latestChapterTitle = toc.last().title
book.totalChapterNum = toc.size book.totalChapterNum = toc.size

@ -69,9 +69,7 @@ object ChapterProvider {
src?.let { src?.let {
durY = durY =
setTypeImage( setTypeImage(
book, src, durY, book, src, durY, textPages
textPages, pageLines,
pageLengths, stringBuilder
) )
} }
} else { } else {
@ -117,10 +115,7 @@ object ChapterProvider {
book: Book, book: Book,
src: String, src: String,
y: Float, y: Float,
textPages: ArrayList<TextPage>, textPages: ArrayList<TextPage>
pageLines: ArrayList<Int>,
pageLengths: ArrayList<Int>,
stringBuilder: StringBuilder
): Float { ): Float {
var durY = y var durY = y
ImageProvider.getImage(book, src)?.let { ImageProvider.getImage(book, src)?.let {

Loading…
Cancel
Save