This commit is contained in:
kunfei committed 2022-10-20 20:30:24 +08:00
1 parent 30adf4ea1d
commit 68016c5228
1 file changed
+3 -1
@@ -100,7 +100,8 @@ data class SearchScope(private var scope: String) {
val list = hashSetOf<BookSource>()
if (scope.isEmpty()) {
list.addAll(appDb.bookSourceDao.allEnabled)
} else if (scope.contains("::")) {
} else {
if (scope.contains("::")) {
scope.substringAfter("::").let {
appDb.bookSourceDao.getBookSource(it)?.let { source ->
list.add(source)
@@ -127,6 +128,7 @@ data class SearchScope(private var scope: String) {
}
}
}
}
return list.sortedBy { it.customOrder }
}