pull/1606/head
kunfei 3 years ago
parent ebc95861a6
commit 2d147c3e47
  1. 17
      app/src/main/java/io/legado/app/help/ContentProcessor.kt

@ -46,15 +46,14 @@ class ContentProcessor private constructor(
@Synchronized
fun upReplaceRules() {
titleReplaceRules.clear()
contentReplaceRules.clear()
titleReplaceRules.addAll(appDb.replaceRuleDao.findEnabledByTitleScope(bookName, bookOrigin))
contentReplaceRules.addAll(
appDb.replaceRuleDao.findEnabledByContentScope(
bookName,
bookOrigin
)
)
titleReplaceRules.run {
clear()
addAll(appDb.replaceRuleDao.findEnabledByTitleScope(bookName, bookOrigin))
}
contentReplaceRules.run {
clear()
addAll(appDb.replaceRuleDao.findEnabledByContentScope(bookName, bookOrigin))
}
}
@Synchronized

Loading…
Cancel
Save