mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-01 23:13:36 +00:00
feat: homepage preloading
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user