61. @Override
public Parcelable onSaveInstanceState() {
Parcelable superState = super.onSaveInstanceState();
SavedState ss = new SavedState(superState);
ss.imageUrl = imageUrl;
if (localImageUri != null) {
ss.uriString = localImageUri.toString();
}
return ss;
}
@Override
public void onRestoreInstanceState(Parcelable state) {
SavedState ss = (SavedState) state;
super.onRestoreInstanceState(ss.getSuperState());
if (!TextUtils.isEmpty(ss.uriString)) {
setImageFromUriString(ss.uriString);
} else if (!TextUtils.isEmpty(ss.imageUrl)) {
setImageUrl(ss.imageUrl);
}
requestLayout();
}
63. final int id = eventGroup.getCheckedRadioButtonId();
switch (id) {
case R.id.attend:
profileData.eventStatus = ProfileData.EVENT_STATUS_ATTEN
break;
case R.id.not_attend:
profileData.eventStatus = ProfileData.EVENT_STATUS_NOT_A
break;
case R.id.unknown:
profileData.eventStatus = ProfileData.EVENT_STATUS_UNKNO
break;
default:
return;
}