优化
This commit is contained in:
1 parent
0bd4f08ecc
commit
30adf4ea1d
1 file changed
+5
-1
@@ -120,8 +120,12 @@ data class SearchScope(private var scope: String) {
|
|||||||
}
|
}
|
||||||
if (list.isEmpty()) {
|
if (list.isEmpty()) {
|
||||||
scope = ""
|
scope = ""
|
||||||
|
appDb.bookSourceDao.allEnabled.let {
|
||||||
|
if (it.isNotEmpty()) {
|
||||||
stateLiveData.postValue(scope)
|
stateLiveData.postValue(scope)
|
||||||
return appDb.bookSourceDao.allEnabled
|
list.addAll(it)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return list.sortedBy { it.customOrder }
|
return list.sortedBy { it.customOrder }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user