This commit is contained in:
kunfei
2022-10-20 20:26:53 +08:00
parent 6e7d6a5a85
commit 678e6125dd

View File

@@ -120,8 +120,12 @@ data class SearchScope(private var scope: String) {
}
if (list.isEmpty()) {
scope = ""
stateLiveData.postValue(scope)
return appDb.bookSourceDao.allEnabled
appDb.bookSourceDao.allEnabled.let {
if (it.isNotEmpty()) {
stateLiveData.postValue(scope)
list.addAll(it)
}
}
}
return list.sortedBy { it.customOrder }
}