Skip to content

Commit c0f8d14

Browse files
committed
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.
1 parent e876647 commit c0f8d14

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/fragments/MainFragment.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ private void setupTabs() {
194194
}
195195

196196
binding.pager.setAdapter(null);
197-
binding.pager.setOffscreenPageLimit(tabsList.size());
198197
binding.pager.setAdapter(pagerAdapter);
199198

200199
updateTabsIconAndDescription();

0 commit comments

Comments
 (0)