From eb46e65d3399b592330147608ec8265ade3f563e Mon Sep 17 00:00:00 2001 From: Jason Yao Date: Thu, 19 Aug 2021 17:37:56 -0400 Subject: [PATCH] small fix --- .../io/legado/app/ui/book/source/manage/BookSourceActivity.kt | 3 +-- .../io/legado/app/ui/book/source/manage/BookSourceAdapter.kt | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceActivity.kt b/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceActivity.kt index c3f0e7b9e..b6371b9f8 100644 --- a/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceActivity.kt @@ -437,9 +437,8 @@ class BookSourceActivity : VMBaseActivity(EventBus.CHECK_SOURCE_DONE) { - adapter.notifyItemRangeChanged(0, adapter.itemCount, bundleOf(Pair("checkSourceDone", null))) - snackBar?.dismiss() Debug.finishChecking() + snackBar?.dismiss() snackBar = null groups.map { group -> if (group.contains("失效")) { diff --git a/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceAdapter.kt b/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceAdapter.kt index 121f0d3b2..7e0937b3c 100644 --- a/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceAdapter.kt @@ -127,8 +127,6 @@ class BookSourceAdapter(context: Context, val callBack: CallBack) : } } - - override fun registerListener(holder: ItemViewHolder, binding: ItemBookSourceBinding) { binding.apply { swtEnabled.setOnCheckedChangeListener { view, checked ->