Fixed collapsed category saying "category is empty"

This commit is contained in:
Jay 2020-04-23 03:32:43 -04:00
parent 950452579f
commit 3631489c56

View file

@ -427,7 +427,7 @@ class LibraryPresenter(
if (showCategories) { if (showCategories) {
categories.forEach { category -> categories.forEach { category ->
val catId = category.id ?: return@forEach 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] val headerItem = headerItems[catId]
if (headerItem != null) items.add( if (headerItem != null) items.add(
LibraryItem(LibraryManga.createBlank(catId), headerItem) LibraryItem(LibraryManga.createBlank(catId), headerItem)