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