Fix clicking on private playlists

This commit is contained in:
Bnyro 2023-01-06 21:35:37 +01:00
parent 581bf1d430
commit f084b1ec06

View File

@ -65,6 +65,7 @@ class PlaylistAdapter(
videoTitle.text = streamItem.title videoTitle.text = streamItem.title
videoInfo.text = streamItem.uploaderName videoInfo.text = streamItem.uploaderName
channelImage.visibility = View.GONE channelImage.visibility = View.GONE
thumbnailDuration.setFormattedDuration(streamItem.duration!!) thumbnailDuration.setFormattedDuration(streamItem.duration!!)
ImageHelper.loadImage(streamItem.thumbnail, thumbnail) ImageHelper.loadImage(streamItem.thumbnail, thumbnail)
root.setOnClickListener { root.setOnClickListener {
@ -81,8 +82,12 @@ class PlaylistAdapter(
true true
} }
if (!streamItem.uploaderUrl.isNullOrBlank()) {
channelContainer.setOnClickListener { channelContainer.setOnClickListener {
streamItem.url?.toID()?.let { NavigationHelper.navigateChannel(root.context, it) } streamItem.uploaderUrl?.toID()?.let {
NavigationHelper.navigateChannel(root.context, it)
}
}
} }
if (playlistType != PlaylistType.PUBLIC) { if (playlistType != PlaylistType.PUBLIC) {