@Override
 public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute) {
   calendar.set(Calendar.HOUR_OF_DAY, hourOfDay);
   calendar.set(Calendar.MINUTE, minute);
   config.setCountdownTimestamp(calendar.getTimeInMillis());
   tvCountdown.setTime(config.getCountdownTimestamp());
 }
  @Override
  public void onDateSet(DatePickerDialog datePickerDialog, int year, int month, int day) {
    calendar.set(Calendar.YEAR, year);
    calendar.set(Calendar.MONTH, month);
    calendar.set(Calendar.DAY_OF_MONTH, day);

    config.setCountdownTimestamp(calendar.getTimeInMillis());
    tpd.setCloseOnSingleTapMinute(false);
    tpd.show(getFragmentManager(), TAG);
    tvCountdown.setTime(config.getCountdownTimestamp());
  }