From be548dcb521d4604f15ce313816ab82cf73845da Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Tue, 29 Nov 2022 19:25:35 +0100 Subject: [PATCH] fix: channel tab title not being set --- .../newpipe/fragments/list/channel/ChannelFragment.java | 2 +- .../fragments/list/channel/ChannelTabFragment.java | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelFragment.java index f0810a03c..8b6c0084e 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelFragment.java @@ -297,7 +297,7 @@ public class ChannelFragment extends BaseStateFragment final String tab = linkHandler.getContentFilters().get(0); if (ChannelTabHelper.showChannelTab(context, preferences, tab)) { tabAdapter.addFragment( - ChannelTabFragment.getInstance(serviceId, linkHandler), + ChannelTabFragment.getInstance(serviceId, linkHandler, name), context.getString(ChannelTabHelper.getTranslationKey(tab))); } } diff --git a/app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelTabFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelTabFragment.java index d00cb5cf9..3f400bdf8 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelTabFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelTabFragment.java @@ -29,11 +29,16 @@ public class ChannelTabFragment extends BaseListInfoFragment