Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down
Loading