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()
binding.mangaSummary.post {
if (binding.subItemGroup.isVisible) {
if ((binding.mangaSummary.lineCount < 3 && manga.genre.isNullOrBlank()) || binding.lessButton.isVisible) {
binding.mangaSummary.setTextIsSelectable(true)
binding.moreButtonGroup.isVisible = false
showMoreButton = binding.lessButton.isVisible
} else {
binding.moreButtonGroup.isVisible = true
}
}
// if (binding.subItemGroup.isVisible) {
// if ((binding.mangaSummary.lineCount < 3 && manga.genre.isNullOrBlank()) || binding.lessButton.isVisible) {
// binding.mangaSummary.setTextIsSelectable(true)
// binding.moreButtonGroup.isVisible = false
// showMoreButton = binding.lessButton.isVisible
// } else {
// binding.moreButtonGroup.isVisible = true
// }
// }
if (adapter.hasFilter()) collapse()
else expand()
}