diff --git a/app/src/main/java/io/legado/app/help/storage/Restore.kt b/app/src/main/java/io/legado/app/help/storage/Restore.kt index 3fd96c62d..8d6b96c2b 100644 --- a/app/src/main/java/io/legado/app/help/storage/Restore.kt +++ b/app/src/main/java/io/legado/app/help/storage/Restore.kt @@ -187,6 +187,7 @@ object Restore { rule.order = jsonItem.readInt("$.serialNumber") ?: index replaceRules.add(rule) } + App.db.replaceRuleDao().insert(*replaceRules.toTypedArray()) replaceRules }.onSuccess { context.toast("成功导入替换规则${it?.size}")