pull/1738/head 3.22.032320
kunfei 3 years ago
parent 0e75981aed
commit 00f56b3944
  1. 1
      app/src/main/java/io/legado/app/model/webBook/SearchModel.kt

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

Loading…
Cancel
Save