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() + } } }