How about adding a comment here. Something like:

// This function gets called when the phone orientation changes. That causes the thumbnail size
// and arrangement to change, so now we go find out how big they are and how many are
// in each row.