Skip to content

Instantly share code, notes, and snippets.

@vincesp
Last active July 7, 2016 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vincesp/cbd6e77210ced924ac4368288c9826bb to your computer and use it in GitHub Desktop.
Save vincesp/cbd6e77210ced924ac4368288c9826bb to your computer and use it in GitHub Desktop.
com.matthew-tamlin:sliding-intro-screen:3.0.1 update problem
try {
dotIndicator.setSelectedItem(currentApp.selectedItem, false); //throws an excpetion if new selectedItem > old numberOfItems
} catch (IndexOutOfBoundsException e) {/*ignore*/}
dotIndicator.setNumberOfItems(currentApp.pageAdapter.getCount());
dotIndicator.setSelectedItem(currentApp.selectedItem, false); //throws an exception if old selectedItem > new numberOfItems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment