diff --git a/app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookActivity.kt index 421bce7fd..056b55999 100644 --- a/app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookActivity.kt @@ -61,6 +61,7 @@ class ArrangeBookActivity : VMBaseActivity(R.layout.activi booksLiveData = App.db.bookDao().observeAll() booksLiveData?.observe(this, Observer { adapter.setItems(it) + upSelectCount() }) } diff --git a/app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookAdapter.kt b/app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookAdapter.kt index eefadb9b3..c24011ee4 100644 --- a/app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookAdapter.kt @@ -27,6 +27,7 @@ class ArrangeBookAdapter(context: Context, val callBack: CallBack) : } else { selectedBooks.remove(item.bookUrl) } + callBack.upSelectCount() } onClick { checkbox.isChecked = !checkbox.isChecked @@ -35,6 +36,7 @@ class ArrangeBookAdapter(context: Context, val callBack: CallBack) : } else { selectedBooks.remove(item.bookUrl) } + callBack.upSelectCount() } } }