pull/46/head
kunfei 5 years ago
parent e1f5d830b7
commit b54751d042
  1. 2
      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

Loading…
Cancel
Save