pull/1251/head
Jason Yao 3 years ago
parent 76882cd7d9
commit eb46e65d33
  1. 3
      app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceActivity.kt
  2. 2
      app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceAdapter.kt

@ -437,9 +437,8 @@ class BookSourceActivity : VMBaseActivity<ActivityBookSourceBinding, BookSourceV
} }
} }
observeEvent<Int>(EventBus.CHECK_SOURCE_DONE) { observeEvent<Int>(EventBus.CHECK_SOURCE_DONE) {
adapter.notifyItemRangeChanged(0, adapter.itemCount, bundleOf(Pair("checkSourceDone", null)))
snackBar?.dismiss()
Debug.finishChecking() Debug.finishChecking()
snackBar?.dismiss()
snackBar = null snackBar = null
groups.map { group -> groups.map { group ->
if (group.contains("失效")) { if (group.contains("失效")) {

@ -127,8 +127,6 @@ class BookSourceAdapter(context: Context, val callBack: CallBack) :
} }
} }
override fun registerListener(holder: ItemViewHolder, binding: ItemBookSourceBinding) { override fun registerListener(holder: ItemViewHolder, binding: ItemBookSourceBinding) {
binding.apply { binding.apply {
swtEnabled.setOnCheckedChangeListener { view, checked -> swtEnabled.setOnCheckedChangeListener { view, checked ->

Loading…
Cancel
Save