pull/2468/head
kunfei 2 years ago
parent 6e7d6a5a85
commit 678e6125dd
  1. 8
      app/src/main/java/io/legado/app/ui/book/search/SearchScope.kt

@ -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 }
} }

Loading…
Cancel
Save