1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-22 02:53:09 +01:00

Hide the upload date element on the About tab

This empty element should be always hidden for this tab, as there is no upload
date available for channels.
This commit is contained in:
AudricV 2023-08-22 19:15:45 +02:00 committed by Stypox
parent 89dc44be61
commit f2ee3859ab
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23

View File

@ -84,6 +84,8 @@ public class ChannelAboutFragment extends BaseDescriptionFragment {
protected void setupMetadata(final LayoutInflater inflater,
final LinearLayout layout) {
final Context context = getContext();
// There is no upload date available for channels, so hide the relevant UI element
binding.detailUploadDateView.setVisibility(View.GONE);
if (channelInfo.getSubscriberCount() != UNKNOWN_SUBSCRIBER_COUNT) {
addMetadataItem(inflater, layout, false, R.string.metadata_subscribers,