Merge pull request #6621 from Bnyro/master

fix: missing separator in video info text
This commit is contained in:
Bnyro 2024-10-15 11:44:58 +02:00 committed by GitHub
commit d3875a8499
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(