Fix lag with many channels on main page

Disable loading all tabs at once, since there can be many of them, and use default strategy of only keeping in memory the two tabs adjacent to the current tab.
This commit is contained in:
Stypox 2023-12-20 22:46:24 +01:00
parent e876647af5
commit c0f8d145f8
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
1 changed files with 0 additions and 1 deletions

View File

@ -194,7 +194,6 @@ public class MainFragment extends BaseFragment implements TabLayout.OnTabSelecte
}
binding.pager.setAdapter(null);
binding.pager.setOffscreenPageLimit(tabsList.size());
binding.pager.setAdapter(pagerAdapter);
updateTabsIconAndDescription();