pull/69/head
kunfei 5 years ago
parent 7305f80b77
commit 059433320f
  1. 2
      app/src/main/java/io/legado/app/help/storage/Restore.kt

@ -226,7 +226,7 @@ object Restore {
fun importOldReplaceRule(json: String): Int {
val replaceRules = mutableListOf<ReplaceRule>()
val items: List<Map<String, Any>> = jsonPath.parse(json).read("$")
for ((index: Int, item: Map<String, Any>) in items.withIndex()) {
for (item in items) {
val jsonItem = jsonPath.parse(item)
OldRule.jsonToReplaceRule(jsonItem.jsonString())?.let {
replaceRules.add(it)

Loading…
Cancel
Save