Exemplo n.º 1
0
  public void CatchReturnedHour(int hour, int minute) {
    String tag = timePickerDialog.getTag();

    if (tag.equals("StartTime")) {
      shift.setStartDate(shift.getStartDate().withTime(hour, minute, 0, 0));
    } else if (tag.equals("EndTime")) {
      shift.setEndDate(shift.getEndDate().withTime(hour, minute, 0, 0));
    }
    UpdateTextOnButtonsAndLabels();
  }
Exemplo n.º 2
0
  public void CatchReturnedDate(int year, int month, int day) {
    String tag = datePickerDialog.getTag();

    if (tag.equals("StartDate")) {
      shift.setStartDate(shift.getStartDate().withDate(year, month + 1, day));
    } else if (tag.equals("EndDate")) {
      shift.setEndDate(shift.getEndDate().withDate(year, month + 1, day));
    }

    UpdateTextOnButtonsAndLabels();
  }