From c950595fe32eb6d73adeec2554c229ab4bf5c0d6 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. --- .../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 48214dbd66..c369075210 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 @@ -185,8 +185,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})" }