From 0b9f58d1b58b034307b6746824fa1a50e4c0d7d7 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 1 Feb 2022 22:57:53 +0800 Subject: [PATCH] Update ContentProcessor.kt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 标题也需要替换 --- app/src/main/java/io/legado/app/help/ContentProcessor.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/ContentProcessor.kt b/app/src/main/java/io/legado/app/help/ContentProcessor.kt index 7ed17f880..800fde6a7 100644 --- a/app/src/main/java/io/legado/app/help/ContentProcessor.kt +++ b/app/src/main/java/io/legado/app/help/ContentProcessor.kt @@ -94,7 +94,7 @@ class ContentProcessor private constructor( } if (includeTitle) { //重新添加标题 - mContent = chapter.getDisplayTitle() + "\n" + mContent + mContent = chapter.getDisplayTitle(getReplaceRules()) + "\n" + mContent } val contents = arrayListOf() mContent.split("\n").forEach { str -> @@ -131,4 +131,4 @@ class ContentProcessor private constructor( return mContent } -} \ No newline at end of file +}