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

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

Loading…
Cancel
Save