Merge pull request #2618 from Bnyro/master

Fix clicking on private playlists
This commit is contained in:
Bnyro 2023-01-06 21:36:04 +01:00 committed by GitHub
commit 0afda03500
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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