From 3631489c561b53dde47af7b9a30fecab7e7a6d99 Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 23 Apr 2020 03:32:43 -0400 Subject: [PATCH] Fixed collapsed category saying "category is empty" --- .../java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt index b727d9b12a..b7afd5c601 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt @@ -427,7 +427,7 @@ class LibraryPresenter( if (showCategories) { categories.forEach { category -> val catId = category.id ?: return@forEach - if (catId > 0 && !categorySet.contains(catId)) { + if (catId > 0 && !categorySet.contains(catId) && catId !in categoriesHidden) { val headerItem = headerItems[catId] if (headerItem != null) items.add( LibraryItem(LibraryManga.createBlank(catId), headerItem)