pull/32/head
kunfei 5 years ago
parent ab83e12c0f
commit e6f66f23c3
  1. 2
      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())

Loading…
Cancel
Save