Hide playlist description text view if no desc available

This commit is contained in:
Bnyro 2023-06-11 14:58:58 +02:00
parent f1b7b2f0a7
commit 8df7cac06d

View File

@ -149,6 +149,8 @@ class PlaylistFragment : Fragment() {
binding.playlistInfo.text = getChannelAndVideoString(response, response.videos) binding.playlistInfo.text = getChannelAndVideoString(response, response.videos)
binding.playlistDescription.text = response.description binding.playlistDescription.text = response.description
// hide playlist description text view if not provided
binding.playlistDescription.isGone = response.description.orEmpty().isBlank()
binding.playlistDescription.let { textView -> binding.playlistDescription.let { textView ->
textView.setOnClickListener { textView.setOnClickListener {