mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 07:50:31 +05:30
Merge pull request #2864 from Bnyro/master
Show whole title when description visible
This commit is contained in:
commit
339f66ca0e
@ -531,6 +531,9 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions {
|
||||
binding.playerDescriptionArrow.animate().rotation(0F).setDuration(250).start()
|
||||
binding.descLinLayout.visibility = View.GONE
|
||||
|
||||
// limit the title height to two lines
|
||||
binding.playerTitle.maxLines = 2
|
||||
|
||||
// show formatted short view count
|
||||
viewInfo = getString(R.string.views, streams.views.formatShort()) + viewInfo
|
||||
} else {
|
||||
@ -538,6 +541,9 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions {
|
||||
binding.playerDescriptionArrow.animate().rotation(180F).setDuration(250).start()
|
||||
binding.descLinLayout.visibility = View.VISIBLE
|
||||
|
||||
// show the whole title
|
||||
binding.playerTitle.maxLines = Int.MAX_VALUE
|
||||
|
||||
// show exact view count
|
||||
viewInfo = getString(R.string.views, String.format("%,d", streams.views)) + viewInfo
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user