mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
only hide category header name in filtered list if using category as the main stat
in the stat details page of course
This commit is contained in:
parent
4cd9c81b92
commit
8e2b35182b
1 changed files with 4 additions and 3 deletions
|
@ -160,9 +160,10 @@ class LibraryHeaderHolder(val view: View, val adapter: LibraryCategoryAdapter) :
|
|||
binding.rearView.updatePadding(top = binding.categoryTitle.marginTop - 6)
|
||||
val category = item.category
|
||||
|
||||
val categoryName = if (category.isAlone && !category.isDynamic ||
|
||||
(adapter.libraryListener as? FilteredLibraryController)?.filterCategories?.size == 1
|
||||
) {
|
||||
val isFilteredList = (adapter.libraryListener as? FilteredLibraryController)?.let {
|
||||
it.filterCategories.size == 1 && it.getTitle() == category.name
|
||||
} ?: false
|
||||
val categoryName = if ((category.isAlone || isFilteredList) && !category.isDynamic) {
|
||||
""
|
||||
} else {
|
||||
category.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue