fix:替换规则编辑界面显示bug,预加载功能替换规则加载错误

pull/1606/head
Xwite 3 years ago
parent 1801211c86
commit 0b2c8e5eef
  1. 2
      app/src/main/java/io/legado/app/model/ReadBook.kt
  2. 2
      app/src/main/java/io/legado/app/ui/replace/edit/ReplaceEditActivity.kt

@ -353,7 +353,7 @@ object ReadBook : CoroutineScope by MainScope() {
if (chapter.index in durChapterIndex - 1..durChapterIndex + 1) {
val contentProcessor = ContentProcessor.get(book.name, book.origin)
val displayTitle = chapter.getDisplayTitle(
contentProcessor.getContentReplaceRules(),
contentProcessor.getTitleReplaceRules(),
book.getUseReplaceRule()
)
val contents = contentProcessor.getContent(book, chapter, content)

@ -110,7 +110,7 @@ class ReplaceEditActivity :
replaceRule.isRegex = cbUseRegex.isChecked
replaceRule.replacement = etReplaceTo.text.toString()
replaceRule.scopeTitle = cbScopeTitle.isChecked
replaceRule.scopeContent = cbScopeTitle.isChecked
replaceRule.scopeContent = cbScopeContent.isChecked
replaceRule.scope = etScope.text.toString()
return replaceRule
}

Loading…
Cancel
Save