Merge pull request #1578 from 52fisher/master

TXT初始化目录时不应启用已关闭的规则
pull/1581/head
kunfei 3 years ago committed by GitHub
commit 42d0495072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/io/legado/app/model/localBook/TextFile.kt

@ -306,7 +306,7 @@ class TextFile(private val book: Book) {
*/ */
private fun getTocRule(content: String): Pattern? { private fun getTocRule(content: String): Pattern? {
tocRules.addAll(getTocRules(content, getTocRules().reversed())) tocRules.addAll(getTocRules(content, getTocRules().reversed()))
tocRules.addAll(getTocRules(content, appDb.txtTocRuleDao.disabled.reversed())) //tocRules.addAll(getTocRules(content, appDb.txtTocRuleDao.disabled.reversed()))
return tocRules.firstOrNull() return tocRules.firstOrNull()
} }

Loading…
Cancel
Save