mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-01-30 22:32:07 +00:00
Change offscreenPageLimit to 1
This commit is contained in:
@@ -179,7 +179,7 @@ public class HomeFragment extends Fragment {
|
||||
|
||||
discoverSongAdapter = new DiscoverSongAdapter(activity, requireContext());
|
||||
bind.discoverSongViewPager.setAdapter(discoverSongAdapter);
|
||||
bind.discoverSongViewPager.setOffscreenPageLimit(3);
|
||||
bind.discoverSongViewPager.setOffscreenPageLimit(1);
|
||||
homeViewModel.getDiscoverSongSample().observe(requireActivity(), songs -> {
|
||||
if (songs == null) {
|
||||
if (bind != null) bind.homeDiscoveryPlaceholder.placeholder.setVisibility(View.VISIBLE);
|
||||
|
||||
Reference in New Issue
Block a user