This commit is contained in:
Horis
2023-07-17 16:10:34 +08:00
parent bc47ecd1ad
commit c030e84c36
4 changed files with 34 additions and 24 deletions
@@ -146,7 +146,9 @@ class ContentProcessor private constructor(
effectiveReplaceRules = arrayListOf()
mContent = mContent.lines().joinToString("\n") { it.trim() }
getContentReplaceRules().forEach { item ->
if (item.pattern.isNotEmpty()) {
if (item.pattern.isEmpty()) {
return@forEach
}
try {
val tmp = if (item.isRegex) {
mContent.replace(
@@ -173,7 +175,6 @@ class ContentProcessor private constructor(
}
}
}
}
if (includeTitle) {
//重新添加标题
mContent = chapter.getDisplayTitle(
@@ -258,6 +258,7 @@ object Restore {
if (!BuildConfig.DEBUG) {
LauncherIconHelp.changeIcon(appCtx.getPrefString(PreferKey.launcherIcon))
}
ThemeConfig.applyDayNight(appCtx)
postEvent(EventBus.RECREATE, "")
}
}
@@ -42,7 +42,8 @@ class PermissionActivity : AppCompatActivity() {
Request.TYPE_MANAGE_ALL_FILES_ACCESS -> showSettingDialog(permissions, rationale) {
try {