for now, disable the logic to hide more/less button in details

This commit is contained in:
Jays2Kings 2021-05-11 15:19:33 -04:00
parent b3f42659ce
commit 887d2fb293

View File

@ -201,15 +201,15 @@ class MangaHeaderHolder(
else manga.description?.trim() else manga.description?.trim()
binding.mangaSummary.post { binding.mangaSummary.post {
if (binding.subItemGroup.isVisible) { // if (binding.subItemGroup.isVisible) {
if ((binding.mangaSummary.lineCount < 3 && manga.genre.isNullOrBlank()) || binding.lessButton.isVisible) { // if ((binding.mangaSummary.lineCount < 3 && manga.genre.isNullOrBlank()) || binding.lessButton.isVisible) {
binding.mangaSummary.setTextIsSelectable(true) // binding.mangaSummary.setTextIsSelectable(true)
binding.moreButtonGroup.isVisible = false // binding.moreButtonGroup.isVisible = false
showMoreButton = binding.lessButton.isVisible // showMoreButton = binding.lessButton.isVisible
} else { // } else {
binding.moreButtonGroup.isVisible = true // binding.moreButtonGroup.isVisible = true
} // }
} // }
if (adapter.hasFilter()) collapse() if (adapter.hasFilter()) collapse()
else expand() else expand()
} }