From f2ee3859ab6031d821a49de8c57e64bf7483f1ce Mon Sep 17 00:00:00 2001 From: AudricV <74829229+AudricV@users.noreply.github.com> Date: Tue, 22 Aug 2023 19:15:45 +0200 Subject: [PATCH] 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. --- .../newpipe/fragments/list/channel/ChannelAboutFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelAboutFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelAboutFragment.java index 4117533bd..d1afd51a0 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelAboutFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelAboutFragment.java @@ -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,