From e6f66f23c3f8830e71837867a49713501b93663f Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 7 Sep 2019 22:59:38 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/help/storage/Restore.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 124e74303..335dd2497 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 @@ -126,7 +126,7 @@ object Restore { rule.isRegex = jsonItem.readBool("$.isRegex") == true rule.scope = jsonItem.readString("$.useTo") rule.isEnabled = jsonItem.readBool("$.enable") == true - rule.order = jsonItem.readInt("$.serialNumber") ?: 0 + rule.order = jsonItem.readInt("$.serialNumber") ?: index replaceRules.add(rule) } App.db.replaceRuleDao().insert(*replaceRules.toTypedArray())