mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20: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
|
||||||
}
|
}
|
||||||
|
|
||||||
channelContainer.setOnClickListener {
|
if (!streamItem.uploaderUrl.isNullOrBlank()) {
|
||||||
streamItem.url?.toID()?.let { NavigationHelper.navigateChannel(root.context, it) }
|
channelContainer.setOnClickListener {
|
||||||
|
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