pull/34/head
kunfei 5 years ago
parent 4f4a96581f
commit 48b197fc0e
  1. 12
      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()
}
}
}

Loading…
Cancel
Save