From 48b197fc0ec0be99b1d4b0d4a2649dc92b67a473 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 12 Sep 2019 18:02:39 +0800 Subject: [PATCH] up --- .../app/ui/changesource/ChangeSourceViewModel.kt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 3159db258..db4a5e889 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 @@ -117,11 +117,13 @@ class ChangeSourceViewModel(application: Application) : BaseViewModel(applicatio * 筛选 */ fun screen(key: String?) { - screenKey = key ?: "" - if (key.isNullOrEmpty()) { - initData() - } else { - + execute { + screenKey = key ?: "" + if (key.isNullOrEmpty()) { + initData() + } else { + App.db.searchBookDao() + } } }