feat: 优化代码

pull/120/head
kunfei 5 years ago
parent cdb2f9f86a
commit 6b31896cf5
  1. 1
      app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookActivity.kt

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

Loading…
Cancel
Save