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?) { fun screen(key: String?) {
screenKey = key ?: "" execute {
if (key.isNullOrEmpty()) { screenKey = key ?: ""
initData() if (key.isNullOrEmpty()) {
} else { initData()
} else {
App.db.searchBookDao()
}
} }
} }

Loading…
Cancel
Save