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
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user