From 6e346b231eb11c4b73f2e3e43b2b1f7e3926cd41 Mon Sep 17 00:00:00 2001 From: arkon Date: Fri, 11 Dec 2020 21:58:04 -0500 Subject: [PATCH] Revert "Distinguish between no results and loading when sorting global search results" This reverts commit 2be9871d0528720b2cc0f92d95e4ef135558cc22. (cherry picked from commit c950595fe32eb6d73adeec2554c229ab4bf5c0d6) --- .../ui/browse/source/globalsearch/GlobalSearchPresenter.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/globalsearch/GlobalSearchPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/globalsearch/GlobalSearchPresenter.kt index 027e34431..30cdf212a 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/globalsearch/GlobalSearchPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/globalsearch/GlobalSearchPresenter.kt @@ -187,8 +187,7 @@ open class GlobalSearchPresenter( .sortedWith( compareBy( // Bubble up sources that actually have results - { it.results?.isEmpty() }, - { it.results == null }, + { it.results.isNullOrEmpty() }, // Same as initial sort, i.e. pinned first then alphabetically { it.source.id.toString() !in pinnedSourceIds }, { "${it.source.name.toLowerCase()} (${it.source.lang})" }