code: @Override
      public void onClick(View v) {
          if (mEndDateTextView == v) {
              if (mDatePickerDialog != null) {
                  mDatePickerDialog.dismiss();
              }
              mDatePickerDialog = DatePickerDialog.newInstance(this, mModel.endDate.year,
                      mModel.endDate.month, mModel.endDate.monthDay);
              mDatePickerDialog.setFirstDayOfWeek(Utils.getFirstDayOfWeekAsCalendar(getActivity()));
              mDatePickerDialog.setYearRange(Utils.YEAR_MIN, Utils.YEAR_MAX);
              mDatePickerDialog.show(getFragmentManager(), FRAG_TAG_DATE_PICKER);
          } else if (mDone == v) {
              String rrule;
              if (mModel.recurrenceState == RecurrenceModel.STATE_NO_RECURRENCE) {
                  rrule = null;
              } else {
                  copyModelToEventRecurrence(mModel, mRecurrence);
                  rrule = mRecurrence.toString();
              }
              if (mRecurrenceSetListener != null) {
                  mRecurrenceSetListener.onRecurrenceSet(rrule);
              }
              dismiss();
          }
      }
docs: Done button