mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Revert "Distinguish between no results and loading when sorting global search results"
This reverts commit 2be9871d05
.
This commit is contained in:
parent
8ffd3a8ed2
commit
c950595fe3
1 changed files with 1 additions and 2 deletions
|
@ -185,8 +185,7 @@ open class GlobalSearchPresenter(
|
||||||
.sortedWith(
|
.sortedWith(
|
||||||
compareBy(
|
compareBy(
|
||||||
// Bubble up sources that actually have results
|
// Bubble up sources that actually have results
|
||||||
{ it.results?.isEmpty() },
|
{ it.results.isNullOrEmpty() },
|
||||||
{ it.results == null },
|
|
||||||
// Same as initial sort, i.e. pinned first then alphabetically
|
// Same as initial sort, i.e. pinned first then alphabetically
|
||||||
{ it.source.id.toString() !in pinnedSourceIds },
|
{ it.source.id.toString() !in pinnedSourceIds },
|
||||||
{ "${it.source.name.toLowerCase()} (${it.source.lang})" }
|
{ "${it.source.name.toLowerCase()} (${it.source.lang})" }
|
||||||
|
|
Loading…
Reference in a new issue