From 7d3f17f1f6b44bfbb9a062d4324c7c886784106c Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 2 Dec 2019 10:56:37 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/help/storage/Restore.kt | 1 + 1 file changed, 1 insertion(+) 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}")