From 2c61447648975fc1919f2896cad228a90f1d226e Mon Sep 17 00:00:00 2001 From: 821938089 <821938089@qq.com> Date: Sat, 9 Jul 2022 11:43:35 +0800 Subject: [PATCH] fix booksource edit --- .../legado/app/ui/book/source/edit/BookSourceEditActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt b/app/src/main/java/io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt index 00534394e..f4f6f35b2 100644 --- a/app/src/main/java/io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt @@ -330,7 +330,7 @@ class BookSourceEditActivity : when (it.key) { "searchUrl" -> source.searchUrl = it.value "checkKeyWord" -> searchRule.checkKeyWord = it.value - "bookList" -> searchRule.bookList = it.value ?: "" + "bookList" -> searchRule.bookList = it.value "name" -> searchRule.name = viewModel.ruleComplete(it.value, searchRule.bookList) "author" -> searchRule.author = @@ -354,7 +354,7 @@ class BookSourceEditActivity : findEntities.forEach { when (it.key) { "exploreUrl" -> source.exploreUrl = it.value - "bookList" -> exploreRule.bookList = it.value ?: "" + "bookList" -> exploreRule.bookList = it.value "name" -> exploreRule.name = viewModel.ruleComplete(it.value, exploreRule.bookList) "author" -> exploreRule.author =