From 619c9eb887f0da7d73915c73bdac67362311c1aa Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 19 Feb 2020 11:42:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/download/DownloadViewModel.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/download/DownloadViewModel.kt b/app/src/main/java/io/legado/app/ui/download/DownloadViewModel.kt index 7258e1c4d..94af92ca0 100644 --- a/app/src/main/java/io/legado/app/ui/download/DownloadViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/download/DownloadViewModel.kt @@ -50,8 +50,11 @@ class DownloadViewModel(application: Application) : BaseViewModel(application) { .append("\n") .append(context.getString(R.string.author_show, book.author)) App.db.bookChapterDao().getChapterList(book.bookUrl).forEach { chapter -> - BookHelp.getContent(book, chapter)?.let { - stringBuilder.append("\n").append(it) + BookHelp.getContent(book, chapter).let { + stringBuilder.append("\n\n") + .append(chapter.title) + .append("\n") + .append(it) } } return stringBuilder.toString()