mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 05:40:31 +05:30
Merge pull request #6621 from Bnyro/master
fix: missing separator in video info text
This commit is contained in:
commit
d3875a8499
@ -45,8 +45,9 @@ class DescriptionLayout(
|
||||
this.streams = streams
|
||||
|
||||
val views = streams.views.formatShort()
|
||||
val date = TextUtils.formatRelativeDate(context, streams.uploaded ?: -1L)
|
||||
binding.run {
|
||||
playerViewsInfo.text = context.getString(R.string.normal_views, views, TextUtils.formatRelativeDate(context, streams.uploaded ?: -1L))
|
||||
playerViewsInfo.text = context.getString(R.string.normal_views, views, TextUtils.SEPARATOR + date)
|
||||
|
||||
textLike.text = streams.likes.formatShort()
|
||||
textDislike.isVisible = streams.dislikes >= 0
|
||||
@ -117,7 +118,8 @@ class DescriptionLayout(
|
||||
// show exact view count
|
||||
"%,d".format(streams.views)
|
||||
}
|
||||
val viewInfo = context.getString(R.string.normal_views, views, TextUtils.formatRelativeDate(context, streams.uploaded ?: -1L))
|
||||
val date = TextUtils.formatRelativeDate(context, streams.uploaded ?: -1L)
|
||||
val viewInfo = context.getString(R.string.normal_views, views, TextUtils.SEPARATOR + date)
|
||||
if (binding.descLinLayout.isVisible) {
|
||||
// hide the description and chapters
|
||||
binding.playerDescriptionArrow.animate().rotation(
|
||||
|
Loading…
Reference in New Issue
Block a user