Alway show the category title always for dymanic categories

Even if it is the only category
pull/3372/head
Jay 4 years ago
parent d7c6575962
commit 37957e61c9

@ -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()

Loading…
Cancel
Save