feat: 优化代码

pull/133/head
kunfei 5 years ago
parent 1b4e3410e0
commit 3fb4738008
  1. 2
      app/src/main/java/io/legado/app/ui/main/bookshelf/books/BooksFragment.kt

@ -111,7 +111,7 @@ class BooksFragment : BaseFragment(R.layout.fragment_books),
else -> list.sortedByDescending { it.durChapterTime }
}
val diffResult = DiffUtil
.calculateDiff(BooksDiffCallBack(ArrayList(booksAdapter.getItems()), books))
.calculateDiff(BooksDiffCallBack(booksAdapter.getItems(), books))
booksAdapter.setItems(books, diffResult)
})
}

Loading…
Cancel
Save