I have a Constants class, that has a static final field. I found out, that I can rewrite this field.
public static final Integer[] THUMBS = {R.drawable.one, R.drawable.two};
In my code I make
mThumbIdsForAdapter = Constants.THUMBS;
And then
mThumbIdsForAdapter[position] = mThumbIdsBlue[position];
After it my Constants.THUMBS contains element mThumbIdsBlue[position]...
How is it possible?
Thank you!