Merge pull request #3980 from Bnyro/master

Hide playlist description text view if no desc available
This commit is contained in:
Bnyro 2023-06-11 14:58:39 +02:00 committed by GitHub
commit 212c33abea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {