pull/42/head
kunfei 5 years ago
parent 02d5cb36dd
commit befe856e75
  1. 4
      app/src/main/java/io/legado/app/ui/main/bookshelf/BooksFragment.kt

@ -86,9 +86,7 @@ class BooksFragment : VMBaseFragment<BooksViewModel>(R.layout.fragment_books),
-3 -> App.db.bookDao().observeAudio()
else -> App.db.bookDao().observeByGroup(groupId)
}
bookshelfLiveData?.observe(
this,
Observer {
bookshelfLiveData?.observe(this, Observer {
val diffResult =
DiffUtil.calculateDiff(BooksDiffCallBack(booksAdapter.getItems(), it))
booksAdapter.setItems(it, false)

Loading…
Cancel
Save