Skip to content

Commit

Permalink
Fix lag with many channels on main page
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Stypox committed Dec 20, 2023
1 parent e876647 commit c0f8d14
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ private void setupTabs() {
}

binding.pager.setAdapter(null);
binding.pager.setOffscreenPageLimit(tabsList.size());
binding.pager.setAdapter(pagerAdapter);

updateTabsIconAndDescription();
Expand Down

0 comments on commit c0f8d14

Please sign in to comment.