Commit cfa4b5b7 authored by Erik's avatar Erik
Browse files

Another fix to make edit not save if nothing changed

Change-Id: Ifd8d21dcae57084464c02ccbe83894894a2f4fd8
parent 97e9cb0b
......@@ -641,6 +641,12 @@ public class EditEventView implements View.OnClickListener, DialogInterface.OnCa
mModel.mAllDay = mAllDayCheckBox.isChecked();
mModel.mLocation = mLocationTextView.getText().toString().trim();
mModel.mDescription = mDescriptionTextView.getText().toString().trim();
if (TextUtils.isEmpty(mModel.mLocation)) {
mModel.mLocation = null;
}
if (TextUtils.isEmpty(mModel.mDescription)) {
mModel.mDescription = null;
}
int status = EventInfoFragment.getResponseFromButtonId(mResponseRadioGroup
.getCheckedRadioButtonId());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment