pull/801/head
gedoor 4 years ago
parent 5ed541836a
commit de19f42487
  1. 2
      app/src/main/java/io/legado/app/ui/book/changesource/ChangeSourceViewModel.kt

@ -100,6 +100,8 @@ class ChangeSourceViewModel(application: Application) : BaseViewModel(applicatio
private fun startSearch() { private fun startSearch() {
execute { execute {
App.db.searchBookDao.clear(name, author) App.db.searchBookDao.clear(name, author)
searchBooks.clear()
upAdapter()
bookSourceList.clear() bookSourceList.clear()
if (searchGroup.isBlank()) { if (searchGroup.isBlank()) {
bookSourceList.addAll(App.db.bookSourceDao.allEnabled) bookSourceList.addAll(App.db.bookSourceDao.allEnabled)

Loading…
Cancel
Save