pull/90/head^2
kunfei 5 years ago
parent 92dadc5842
commit e3389ff8af
  1. 1
      app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookActivity.kt
  2. 2
      app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookAdapter.kt

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

@ -27,6 +27,7 @@ class ArrangeBookAdapter(context: Context, val callBack: CallBack) :
} else { } else {
selectedBooks.remove(item.bookUrl) selectedBooks.remove(item.bookUrl)
} }
callBack.upSelectCount()
} }
onClick { onClick {
checkbox.isChecked = !checkbox.isChecked checkbox.isChecked = !checkbox.isChecked
@ -35,6 +36,7 @@ class ArrangeBookAdapter(context: Context, val callBack: CallBack) :
} else { } else {
selectedBooks.remove(item.bookUrl) selectedBooks.remove(item.bookUrl)
} }
callBack.upSelectCount()
} }
} }
} }

Loading…
Cancel
Save