From b791c6c2d841aa9d1d55a4d6a294d587eb190a1f Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 20 May 2020 23:42:41 -0400 Subject: [PATCH] Fixed jumping categories while searching library --- .../java/eu/kanade/tachiyomi/ui/library/LibraryController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt index 747f7f9a9e..1b373ad9e5 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt @@ -584,7 +584,7 @@ class LibraryController( is LibraryHeaderItem -> return item is LibraryItem -> return item.header } - return null + return adapter.headerItems.firstOrNull() as? LibraryHeaderItem } private fun getCategoryOrder(): Int? {