@ -61,6 +61,7 @@ class ArrangeBookActivity : VMBaseActivity<ArrangeBookViewModel>(R.layout.activi
booksLiveData = App.db.bookDao().observeAll()
booksLiveData?.observe(this, Observer {
adapter.setItems(it)
upSelectCount()
})
}
@ -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) :