|
|
@ -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) |
|
|
|