优化
This commit is contained in:
@@ -120,8 +120,12 @@ data class SearchScope(private var scope: String) {
|
|||||||
}
|
}
|
||||||
if (list.isEmpty()) {
|
if (list.isEmpty()) {
|
||||||
scope = ""
|
scope = ""
|
||||||
stateLiveData.postValue(scope)
|
appDb.bookSourceDao.allEnabled.let {
|
||||||
return appDb.bookSourceDao.allEnabled
|
if (it.isNotEmpty()) {
|
||||||
|
stateLiveData.postValue(scope)
|
||||||
|
list.addAll(it)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return list.sortedBy { it.customOrder }
|
return list.sortedBy { it.customOrder }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user