From aee0503868e5e74fc114f6e32d70cec0870eabb9 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 19 Aug 2019 11:20:15 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/changesource/ChangeSourceViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/changesource/ChangeSourceViewModel.kt b/app/src/main/java/io/legado/app/ui/changesource/ChangeSourceViewModel.kt index 13799eecf..e392ffc13 100644 --- a/app/src/main/java/io/legado/app/ui/changesource/ChangeSourceViewModel.kt +++ b/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 { val diffResult = DiffUtil.calculateDiff(DiffCallBack(it.getItems(), searchBooks.toList())) diffResult.dispatchUpdatesTo(it)