pull/35/head^2
kunfei 5 years ago
parent c028e643e3
commit f25a36b8ea
  1. 2
      app/src/main/java/io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt
  2. 2
      app/src/main/java/io/legado/app/ui/rss/source/edit/RssSourceEditActivity.kt

@ -225,7 +225,7 @@ class BookSourceEditActivity :
}
private fun getSource(): BookSource? {
val source = viewModel.sourceLiveData.value ?: BookSource()
val source = viewModel.sourceLiveData.value?.copy() ?: BookSource()
source.enabled = cb_is_enable.isChecked
source.enabledExplore = cb_is_enable_find.isChecked
viewModel.sourceLiveData.value?.let {

@ -135,7 +135,7 @@ class RssSourceEditActivity :
}
private fun getRssSource(): RssSource? {
val source = viewModel.sourceLiveData.value ?: RssSource()
val source = viewModel.sourceLiveData.value?.copy() ?: RssSource()
sourceEntities.forEach {
when (it.key) {
"sourceName" -> source.sourceName = it.value ?: ""

Loading…
Cancel
Save