Fixed clicking page indicator

This commit is contained in:
ByteHamster 2020-05-09 11:17:24 +02:00
parent 181addf619
commit c0bca81cc6
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ public class AudioPlayerFragment extends Fragment implements
pageIndicator = root.findViewById(R.id.page_indicator);
pageIndicator.setViewPager(pager);
pageIndicator.setOnClickListener(v ->
pager.setCurrentItem((pager.getCurrentItem() + 1) % pager.getChildCount()));
pager.setCurrentItem((pager.getCurrentItem() + 1) % NUM_CONTENT_FRAGMENTS));
return root;
}