From 229f34f10f6e20b4d7bd07b5cb477fccb4a4713d Mon Sep 17 00:00:00 2001 From: 821938089 <821938089@qq.com> Date: Sat, 23 Jul 2022 07:57:41 +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 --- app/src/main/java/io/legado/app/model/ReadBook.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/model/ReadBook.kt b/app/src/main/java/io/legado/app/model/ReadBook.kt index a708ad171..199bf05e1 100644 --- a/app/src/main/java/io/legado/app/model/ReadBook.kt +++ b/app/src/main/java/io/legado/app/model/ReadBook.kt @@ -310,8 +310,9 @@ object ReadBook : CoroutineScope by MainScope() { if (book != null && bookSource != null) { CacheBook.getOrCreate(bookSource, book).download(scope, chapter) } else if (book != null) { + val msg = if (book.isLocalBook()) "无内容" else "没有书源" contentLoadFinish( - book, chapter, "没有书源", resetPageOffset = resetPageOffset + book, chapter, "加载正文失败\n$msg", resetPageOffset = resetPageOffset ) { success?.invoke() }