From e513487caac5ef8d7e1b5a60db60291ee8ec5cba Mon Sep 17 00:00:00 2001 From: Andreas Date: Fri, 29 Jul 2022 16:17:31 +0200 Subject: [PATCH] Fix number of items not updating when Show category tabs is off (#7644) --- .../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 b43cd272eb..995cdf3d73 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 @@ -644,7 +644,7 @@ class LibraryPresenter( val defaultTitle = stringResource(id = R.string.label_library) val default = remember { LibraryToolbarTitle(defaultTitle) } - return produceState(initialValue = default, category, mangaCountVisibility, tabVisibility) { + return produceState(initialValue = default, category, loadedManga, mangaCountVisibility, tabVisibility) { val title = if (tabVisibility.not()) category?.name ?: defaultTitle else defaultTitle value = when {