// retrieve the edited values and save the changes
String newName = userValues[0];
if (newName.length() > 0)
snap.setName(newName);
snap.setComment(userValues[1]);
snap.save(data);
// alert the list model so it can redraw the given item
snapshotModel.set(selIdx, snap);
}
}