udacity/Android_Me

check should be on the index not on the list of ids

Opened this issue · 1 comments

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)