@ -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 ?: ""