From cb921b657c921b96cb73aabd7f3196652720d131 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 11 May 2022 09:56:36 +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/data/entities/BookChapter.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/data/entities/BookChapter.kt b/app/src/main/java/io/legado/app/data/entities/BookChapter.kt index 4a46bde8a..ab840ce89 100644 --- a/app/src/main/java/io/legado/app/data/entities/BookChapter.kt +++ b/app/src/main/java/io/legado/app/data/entities/BookChapter.kt @@ -95,7 +95,7 @@ data class BookChapter( 2 -> displayTitle = ChineseUtils.s2t(displayTitle) } } - if (useReplace && replaceRules != null) { + if (useReplace && replaceRules != null) kotlin.run { replaceRules.forEach { item -> if (item.pattern.isNotEmpty()) { try { @@ -115,7 +115,7 @@ data class BookChapter( item.isEnabled = false appDb.replaceRuleDao.update(item) } catch (e: CancellationException) { - return displayTitle + return@run } catch (e: Exception) { AppLog.put("${item.name}替换出错\n替换内容\n${displayTitle}", e) appCtx.toastOnUi("${item.name}替换出错")