Distinguish between no results and loading when sorting global search results
(cherry picked from commit 2be9871d0528720b2cc0f92d95e4ef135558cc22)
This commit is contained in:
parent
41433eb262
commit
3f55759b8b
@ -187,7 +187,8 @@ open class GlobalSearchPresenter(
|
||||
.sortedWith(
|
||||
compareBy(
|
||||
// Bubble up sources that actually have results
|
||||
{ it.results.isNullOrEmpty() },
|
||||
{ it.results?.isEmpty() },
|
||||
{ it.results == null },
|
||||
// Same as initial sort, i.e. pinned first then alphabetically
|
||||
{ it.source.id.toString() !in pinnedSourceIds },
|
||||
{ "${it.source.name.toLowerCase()} (${it.source.lang})" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user