1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-08 11:00:02 +00:00

Merge pull request #11112 from aryn-ydv/extend-playlist-description

Make playlist description clickable to show more / less content
This commit is contained in:
Tobi 2024-06-17 11:32:10 +02:00 committed by GitHub
commit c795214abb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -352,6 +352,7 @@ public class PlaylistFragment extends BaseListInfoFragment<StreamInfoItem, Playl
});
ellipsizer.setContent(description);
headerBinding.playlistDescriptionReadMore.setOnClickListener(v -> ellipsizer.toggle());
headerBinding.playlistDescription.setOnClickListener(v -> ellipsizer.toggle());
} else {
headerBinding.playlistDescription.setVisibility(View.GONE);
headerBinding.playlistDescriptionReadMore.setVisibility(View.GONE);