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?.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) :
} else {
selectedBooks.remove(item.bookUrl)
}
callBack.upSelectCount()
}
}
}

Loading…
Cancel
Save