mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-25 20:42:34 +01:00
Fix channel tabs in main page setting title themselves
This commit is contained in:
parent
c076a0f771
commit
a1e8b9be4e
@ -457,8 +457,10 @@ public class ChannelFragment extends BaseStateFragment<ChannelInfo>
|
|||||||
for (final ListLinkHandler linkHandler : currentInfo.getTabs()) {
|
for (final ListLinkHandler linkHandler : currentInfo.getTabs()) {
|
||||||
final String tab = linkHandler.getContentFilters().get(0);
|
final String tab = linkHandler.getContentFilters().get(0);
|
||||||
if (ChannelTabHelper.showChannelTab(context, preferences, tab)) {
|
if (ChannelTabHelper.showChannelTab(context, preferences, tab)) {
|
||||||
tabAdapter.addFragment(
|
final ChannelTabFragment channelTabFragment =
|
||||||
ChannelTabFragment.getInstance(serviceId, linkHandler, name),
|
ChannelTabFragment.getInstance(serviceId, linkHandler, name);
|
||||||
|
channelTabFragment.useAsFrontPage(useAsFrontPage);
|
||||||
|
tabAdapter.addFragment(channelTabFragment,
|
||||||
context.getString(ChannelTabHelper.getTranslationKey(tab)));
|
context.getString(ChannelTabHelper.getTranslationKey(tab)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user