Skip to content

Instantly share code, notes, and snippets.

@David-Strauss
Created February 23, 2014 14:51
void updatePageCount(ViewPager viewPager) {
int currentItem = pager.getCurrentItem();
pager.setAdapter(pager.getAdapter());
pager.setCurrentItem(currentItem);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment