diff --git a/app/src/main/java/io/legado/app/ui/book/search/SearchScope.kt b/app/src/main/java/io/legado/app/ui/book/search/SearchScope.kt index 6178b9a9a..27e84877b 100644 --- a/app/src/main/java/io/legado/app/ui/book/search/SearchScope.kt +++ b/app/src/main/java/io/legado/app/ui/book/search/SearchScope.kt @@ -98,7 +98,9 @@ data class SearchScope(private var scope: String) { */ fun getBookSources(): List { val list = hashSetOf() - if (scope.contains("::")) { + if (scope.isEmpty()) { + list.addAll(appDb.bookSourceDao.allEnabled) + } else if (scope.contains("::")) { scope.substringAfter("::").let { appDb.bookSourceDao.getBookSource(it)?.let { source -> list.add(source)