mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 00:20:32 +00: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:
parent
89dc44be61
commit
f2ee3859ab
@ -84,6 +84,8 @@ public class ChannelAboutFragment extends BaseDescriptionFragment {
|
|||||||
protected void setupMetadata(final LayoutInflater inflater,
|
protected void setupMetadata(final LayoutInflater inflater,
|
||||||
final LinearLayout layout) {
|
final LinearLayout layout) {
|
||||||
final Context context = getContext();
|
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) {
|
if (channelInfo.getSubscriberCount() != UNKNOWN_SUBSCRIBER_COUNT) {
|
||||||
addMetadataItem(inflater, layout, false, R.string.metadata_subscribers,
|
addMetadataItem(inflater, layout, false, R.string.metadata_subscribers,
|
||||||
|
Loading…
Reference in New Issue
Block a user