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? {