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