feat: homepage preloading

This commit is contained in:
antonio
2023-06-17 15:41:35 +02:00
parent b76a38cb30
commit 7779251cec

View File

@@ -103,6 +103,7 @@ public class HomeFragment extends Fragment {
pager.addFragment(new HomeTabRadioFragment(), "Radio", R.drawable.ic_play_for_work);
bind.homeViewPager.setAdapter(pager);
bind.homeViewPager.setOffscreenPageLimit(3);
bind.homeViewPager.setUserInputEnabled(false);
new TabLayoutMediator(bind.homeTabLayout, bind.homeViewPager,