Fix total item count in library app bar (#8117)

(cherry picked from commit ef2c9460b5)
This commit is contained in:
AntsyLich
2022-10-01 09:36:23 +06:00
committed by Jobobby04
parent 54dcb640bb
commit 5002bafa22
@@ -927,7 +927,7 @@ class LibraryPresenter(
val count = when {
category == null || mangaCountVisibility.not() -> null
tabVisibility.not() -> loadedManga[category.id]?.size
else -> loadedManga.values.flatten().distinct().size
else -> loadedManga.values.flatten().distinctBy { it.manga.id }.size
}
value = when (category) {