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]
bean.index = i
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.totalChapterNum = toc.size

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

Loading…
Cancel
Save