|
|
@ -330,7 +330,7 @@ class BookSourceEditActivity : |
|
|
|
when (it.key) { |
|
|
|
when (it.key) { |
|
|
|
"searchUrl" -> source.searchUrl = it.value |
|
|
|
"searchUrl" -> source.searchUrl = it.value |
|
|
|
"checkKeyWord" -> searchRule.checkKeyWord = it.value |
|
|
|
"checkKeyWord" -> searchRule.checkKeyWord = it.value |
|
|
|
"bookList" -> searchRule.bookList = it.value ?: "" |
|
|
|
"bookList" -> searchRule.bookList = it.value |
|
|
|
"name" -> searchRule.name = |
|
|
|
"name" -> searchRule.name = |
|
|
|
viewModel.ruleComplete(it.value, searchRule.bookList) |
|
|
|
viewModel.ruleComplete(it.value, searchRule.bookList) |
|
|
|
"author" -> searchRule.author = |
|
|
|
"author" -> searchRule.author = |
|
|
@ -354,7 +354,7 @@ class BookSourceEditActivity : |
|
|
|
findEntities.forEach { |
|
|
|
findEntities.forEach { |
|
|
|
when (it.key) { |
|
|
|
when (it.key) { |
|
|
|
"exploreUrl" -> source.exploreUrl = it.value |
|
|
|
"exploreUrl" -> source.exploreUrl = it.value |
|
|
|
"bookList" -> exploreRule.bookList = it.value ?: "" |
|
|
|
"bookList" -> exploreRule.bookList = it.value |
|
|
|
"name" -> exploreRule.name = |
|
|
|
"name" -> exploreRule.name = |
|
|
|
viewModel.ruleComplete(it.value, exploreRule.bookList) |
|
|
|
viewModel.ruleComplete(it.value, exploreRule.bookList) |
|
|
|
"author" -> exploreRule.author = |
|
|
|
"author" -> exploreRule.author = |
|
|
|