diff --git a/app/src/main/java/io/legado/app/model/localBook/AnalyzeTxtFile.kt b/app/src/main/java/io/legado/app/model/localBook/AnalyzeTxtFile.kt index 86666598a..f78471fb9 100644 --- a/app/src/main/java/io/legado/app/model/localBook/AnalyzeTxtFile.kt +++ b/app/src/main/java/io/legado/app/model/localBook/AnalyzeTxtFile.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 diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt index 66f4f293d..0632870f4 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt @@ -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, - pageLines: ArrayList, - pageLengths: ArrayList, - stringBuilder: StringBuilder + textPages: ArrayList ): Float { var durY = y ImageProvider.getImage(book, src)?.let {