Fix channel tabs in main page setting title themselves

This commit is contained in:
Stypox 2023-04-14 10:27:25 +02:00
parent c076a0f771
commit a1e8b9be4e
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
1 changed files with 4 additions and 2 deletions

View File

@ -457,8 +457,10 @@ public class ChannelFragment extends BaseStateFragment<ChannelInfo>
for (final ListLinkHandler linkHandler : currentInfo.getTabs()) {
final String tab = linkHandler.getContentFilters().get(0);
if (ChannelTabHelper.showChannelTab(context, preferences, tab)) {
tabAdapter.addFragment(
ChannelTabFragment.getInstance(serviceId, linkHandler, name),
final ChannelTabFragment channelTabFragment =
ChannelTabFragment.getInstance(serviceId, linkHandler, name);
channelTabFragment.useAsFrontPage(useAsFrontPage);
tabAdapter.addFragment(channelTabFragment,
context.getString(ChannelTabHelper.getTranslationKey(tab)));
}
}