Fix previous ActionBar title visible for a few miliseconds when opening ChannelFragment

This commit is contained in:
TobiGr 2023-09-18 15:52:29 +02:00 committed by Stypox
parent 57eaa1bbe1
commit 64da7a06c0
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
1 changed files with 1 additions and 0 deletions

View File

@ -146,6 +146,7 @@ public class ChannelFragment extends BaseStateFragment<ChannelInfo>
binding.viewPager.setAdapter(tabAdapter);
binding.tabLayout.setupWithViewPager(binding.viewPager);
setTitle(name);
binding.channelTitleView.setText(name);
if (!PicassoHelper.getShouldLoadImages()) {
// do not waste space for the banner if it is not going to be loaded