mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user