Re-add the separator in the search results

This commit is contained in:
Bnyro 2023-06-03 21:53:42 +02:00
parent dddb962d9e
commit 5dcafdaaf9

View File

@ -115,7 +115,6 @@ class VideosAdapter(
?: holder.allCaughtUpBinding)!!.root.context
val uploadDate =
video.uploaded?.takeIf { it > 0 }?.let { TextUtils.formatRelativeDate(context, it) }
?.toString().orEmpty()
// Trending layout
holder.trendingRowBinding?.apply {
@ -133,7 +132,7 @@ class VideosAdapter(
R.string.trending_views,
video.uploaderName,
video.views.formatShort(),
uploadDate,
uploadDate?.toString().orEmpty(),
)
video.duration?.let { thumbnailDuration.setFormattedDuration(it, video.isShort) }
channelImage.setOnClickListener {
@ -164,7 +163,7 @@ class VideosAdapter(
videoInfo.text = root.context.getString(
R.string.normal_views,
video.views.formatShort(),
uploadDate,
uploadDate?.let { " ${TextUtils.SEPARATOR} $it" },
)
thumbnailDuration.text = video.duration?.let { DateUtils.formatElapsedTime(it) }