From 6f660bf8611f683f34d0dc5ff42ad5b8e0378c82 Mon Sep 17 00:00:00 2001 From: ag2s20150909 Date: Fri, 26 Mar 2021 18:46:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4io.legado.app.model.localBook?= =?UTF-8?q?.EpubFile=20=E4=B8=ADgetContent=20=E6=96=B9=E6=B3=95=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=97=A0=E7=94=A8=E6=9F=A5=E8=AF=A2=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E7=9A=84=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/model/localBook/EpubFile.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/main/java/io/legado/app/model/localBook/EpubFile.kt b/app/src/main/java/io/legado/app/model/localBook/EpubFile.kt index 3d5205130..991ba20a2 100644 --- a/app/src/main/java/io/legado/app/model/localBook/EpubFile.kt +++ b/app/src/main/java/io/legado/app/model/localBook/EpubFile.kt @@ -4,8 +4,6 @@ import android.graphics.Bitmap import android.graphics.BitmapFactory import android.net.Uri import android.text.TextUtils -import android.util.Log -import io.legado.app.data.appDb import io.legado.app.data.entities.Book import io.legado.app.data.entities.BookChapter import io.legado.app.utils.* @@ -132,10 +130,7 @@ class EpubFile(var book: Book) { private fun getContent(chapter: BookChapter): String? { /*获取当前章节文本*/ var string = getChildChapter(chapter, chapter.url) - val childContends = appDb.epubChapterDao.get(book.bookUrl, chapter.url) - childContends.forEach { - string += "\n" + getChildChapter(chapter, it.href) - } + return string }