Alway show the category title always for dymanic categories

Even if it is the only category
This commit is contained in:
Jay 2020-05-24 15:51:09 -04:00
parent d7c6575962
commit 37957e61c9

View File

@ -95,7 +95,7 @@ class LibraryHeaderHolder(val view: View, private val adapter: LibraryCategoryAd
sectionText.setBackgroundResource(R.drawable.square_ripple) sectionText.setBackgroundResource(R.drawable.square_ripple)
} }
if (category.isAlone) sectionText.text = "" if (category.isAlone && !category.isDynamic) sectionText.text = ""
else sectionText.text = category.name else sectionText.text = category.name
if (category.sourceId != null) { if (category.sourceId != null) {
val icon = adapter.sourceManager.get(category.sourceId!!)?.icon() val icon = adapter.sourceManager.get(category.sourceId!!)?.icon()