pull/32/head
kunfei 5 years ago
parent 73a18481fc
commit aee0503868
  1. 2
      app/src/main/java/io/legado/app/ui/changesource/ChangeSourceViewModel.kt

@ -28,7 +28,7 @@ class ChangeSourceViewModel(application: Application) : BaseViewModel(applicatio
} }
} }
fun upAdapter() { private fun upAdapter() {
callBack?.adapter()?.let { callBack?.adapter()?.let {
val diffResult = DiffUtil.calculateDiff(DiffCallBack(it.getItems(), searchBooks.toList())) val diffResult = DiffUtil.calculateDiff(DiffCallBack(it.getItems(), searchBooks.toList()))
diffResult.dispatchUpdatesTo(it) diffResult.dispatchUpdatesTo(it)

Loading…
Cancel
Save