From 1061bce4f347def9b8f86d3bd2ad25e339ab713a Mon Sep 17 00:00:00 2001 From: Stypox Date: Fri, 21 Apr 2023 15:54:22 +0200 Subject: [PATCH] Add avatar and bannner URLs to channel About tab --- .../newpipe/fragments/list/channel/ChannelAboutFragment.java | 5 +++++ app/src/main/res/values/strings.xml | 2 ++ 2 files changed, 7 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 271be3939..e78d5a922 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 @@ -88,5 +88,10 @@ public class ChannelAboutFragment extends BaseDescriptionFragment { addMetadataItem(inflater, layout, false, R.string.metadata_subscribers, Localization.localizeNumber(context, channelInfo.getSubscriberCount())); } + + addMetadataItem(inflater, layout, true, R.string.metadata_avatar_url, + channelInfo.getAvatarUrl()); + addMetadataItem(inflater, layout, true, R.string.metadata_banner_url, + channelInfo.getBannerUrl()); } } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 44e8f5e74..e6fb35a16 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -756,6 +756,8 @@ Support Host Thumbnail URL + Avatar URL + Banner URL Public Unlisted Private