show correct number of items in the library tit... (#5516)
...le, even when all manga are in a category that isn't the default category. (cherry picked from commit 8d5f7985915f45bd50ad889707a4049b50400124)
This commit is contained in:
parent
9ade06c6f7
commit
a844c636a6
@ -179,11 +179,8 @@ class LibraryController(
|
||||
|
||||
if (preferences.categoryNumberOfItems().get() && libraryMangaRelay.hasValue()) {
|
||||
libraryMangaRelay.value.mangas.let { mangaMap ->
|
||||
if (!showCategoryTabs) {
|
||||
if (!showCategoryTabs || adapter?.categories?.size == 1) {
|
||||
title += " (${mangaMap[currentCategory?.id]?.size ?: 0})"
|
||||
} else if (adapter?.categories?.size == 1) {
|
||||
// Only "Default" category
|
||||
title += " (${mangaMap[0]?.size ?: 0})"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user