From 78948786ac81c4bf2dfb4d98e0d4252a34bba6ec Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 12 Jul 2020 18:49:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/model/localBook/AnalyzeTxtFile.kt | 2 +- .../app/ui/book/read/page/provider/ChapterProvider.kt | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) 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 {