diff --git a/app/src/main/java/com/github/libretube/ui/adapters/PlaylistAdapter.kt b/app/src/main/java/com/github/libretube/ui/adapters/PlaylistAdapter.kt index c5510315c..08ec8ecaf 100644 --- a/app/src/main/java/com/github/libretube/ui/adapters/PlaylistAdapter.kt +++ b/app/src/main/java/com/github/libretube/ui/adapters/PlaylistAdapter.kt @@ -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) {