pull/32/head
kunfei 5 years ago
parent 506102aa17
commit 63e6aae818
  1. 2
      app/src/main/java/io/legado/app/ui/sourceedit/SourceEditActivity.kt

@ -196,7 +196,7 @@ class SourceEditActivity : BaseActivity<SourceEditViewModel>(false), KeyboardToo
} }
private fun getSource(): BookSource? { private fun getSource(): BookSource? {
val source = viewModel.sourceLiveData.value?.copy() ?: BookSource() val source = viewModel.sourceLiveData.value ?: BookSource()
source.enabled = cb_is_enable.isChecked source.enabled = cb_is_enable.isChecked
source.enabledExplore = cb_is_enable_find.isChecked source.enabledExplore = cb_is_enable_find.isChecked
viewModel.sourceLiveData.value?.let { viewModel.sourceLiveData.value?.let {

Loading…
Cancel
Save