优化
This commit is contained in:
@@ -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 {
|
||||