mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-09 19:10:30 +05:30
Merge pull request #6920 from FineFindus/feat/playlist-views
feat(Playlist): display views and upload date
This commit is contained in:
commit
9950f18235
@ -80,12 +80,14 @@ class PlaylistAdapter(
|
||||
|
||||
holder.binding.apply {
|
||||
videoTitle.text = streamItem.title
|
||||
videoInfo.text = streamItem.uploaderName
|
||||
channelImageContainer.isGone = true
|
||||
videoInfo.text = TextUtils.formatViewsString(root.context, streamItem.views ?: -1, streamItem.uploaded, streamItem.uploaderName)
|
||||
videoInfo.maxLines = 2
|
||||
|
||||
thumbnailDuration.setFormattedDuration(streamItem.duration ?: -1, streamItem.isShort, streamItem.uploaded)
|
||||
// piped does not load channel avatars for playlist views
|
||||
channelContainer.isGone = true
|
||||
|
||||
ImageHelper.loadImage(streamItem.thumbnail, thumbnail)
|
||||
thumbnailDuration.setFormattedDuration(streamItem.duration ?: -1, streamItem.isShort, streamItem.uploaded)
|
||||
|
||||
root.setOnClickListener {
|
||||
NavigationHelper.navigateVideo(root.context, streamItem.url, playlistId)
|
||||
|
Loading…
Reference in New Issue
Block a user