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

This commit is contained in:
AntsyLich 2022-10-01 09:36:23 +06:00 committed by GitHub
parent ad84a8c3e9
commit ef2c9460b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -631,7 +631,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) {