From b54751d042abc3dc50254ced8ec4690899be2743 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 4 Nov 2019 12:36:11 +0800 Subject: [PATCH] up --- .../io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt | 2 ++ 1 file changed, 2 insertions(+) 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