|
|
@ -62,6 +62,7 @@ class SearchModel(private val scope: CoroutineScope) { |
|
|
|
searchPage = 1 |
|
|
|
searchPage = 1 |
|
|
|
val searchGroup = appCtx.getPrefString("searchGroup") ?: "" |
|
|
|
val searchGroup = appCtx.getPrefString("searchGroup") ?: "" |
|
|
|
bookSourceList.clear() |
|
|
|
bookSourceList.clear() |
|
|
|
|
|
|
|
searchBooks.clear() |
|
|
|
callBack?.onSearchSuccess(searchBooks) |
|
|
|
callBack?.onSearchSuccess(searchBooks) |
|
|
|
if (searchGroup.isBlank()) { |
|
|
|
if (searchGroup.isBlank()) { |
|
|
|
bookSourceList.addAll(appDb.bookSourceDao.allEnabled) |
|
|
|
bookSourceList.addAll(appDb.bookSourceDao.allEnabled) |
|
|
|