|
|
@ -129,6 +129,7 @@ class BookSourceEditActivity : |
|
|
|
bookSource?.let { |
|
|
|
bookSource?.let { |
|
|
|
cb_is_enable.isChecked = it.enabled |
|
|
|
cb_is_enable.isChecked = it.enabled |
|
|
|
cb_is_enable_find.isChecked = it.enabledExplore |
|
|
|
cb_is_enable_find.isChecked = it.enabledExplore |
|
|
|
|
|
|
|
sp_type.setSelection(bookSource.bookSourceType) |
|
|
|
} |
|
|
|
} |
|
|
|
//基本信息 |
|
|
|
//基本信息 |
|
|
|
sourceEntities.clear() |
|
|
|
sourceEntities.clear() |
|
|
@ -225,6 +226,7 @@ class BookSourceEditActivity : |
|
|
|
val source = viewModel.sourceLiveData.value ?: 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 |
|
|
|
|
|
|
|
source.bookSourceType = sp_type.selectedItemPosition |
|
|
|
viewModel.sourceLiveData.value?.let { |
|
|
|
viewModel.sourceLiveData.value?.let { |
|
|
|
source.customOrder = it.customOrder |
|
|
|
source.customOrder = it.customOrder |
|
|
|
source.weight = it.weight |
|
|
|
source.weight = it.weight |
|
|
|