mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
Fix clicking on private playlists
This commit is contained in:
parent
581bf1d430
commit
f084b1ec06
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user