Open GuidoCasati opened 6 years ago
if(mListIndex < mListImagesIds.size()) imageView.setImageResource(mListImagesIds.get(mListIndex));
Not sure what you're suggesting but this is a range check after the previous increment. It tests the index against the size of the list. It should be if(mListIndex < mImageIds.size()-1)
if(mListIndex < mImageIds.size()-1)
if(mListIndex < mListImagesIds.size()) imageView.setImageResource(mListImagesIds.get(mListIndex));