Expand manga author to max lines when more is tapped in details

This commit is contained in:
Jays2Kings 2021-08-22 23:58:45 -04:00
parent 52d3eacadd
commit 3e463b3362

View File

@ -160,6 +160,7 @@ class MangaHeaderHolder(
binding.lessButton.isVisible = !isTablet
binding.moreButtonGroup.isVisible = false
binding.title.maxLines = Integer.MAX_VALUE
binding.mangaAuthor.maxLines = Integer.MAX_VALUE
binding.mangaSummary.requestFocus()
}
}
@ -174,6 +175,7 @@ class MangaHeaderHolder(
binding.lessButton.isVisible = false
binding.moreButtonGroup.isVisible = !isTablet
binding.title.maxLines = 4
binding.mangaAuthor.maxLines = 2
adapter.recyclerView.post {
adapter.delegate.updateScroll()
}