private void updateStartTime() {
   ReminderItem remind = ReminderList.getInstance().getCurrentReminder();
   if (remind == null) {
     return;
   }
   UtilsTime.setTime(startHour, startMinute, startAM, startPM, remind.getStartTime());
 }
 private void updateEndTime() {
   ReminderItem remind = ReminderList.getInstance().getCurrentReminder();
   if (remind == null) {
     return;
   }
   UtilsTime.setTime(endHour, endMinute, endAM, endPM, remind.getEndTime());
 }
 private void updateTimingType() {
   ReminderItem remind = ReminderList.getInstance().getCurrentReminder();
   if (remind == null) {
     return;
   }
   if (remind.isRangeTiming()) {
     timing.setText(AppUtil.getContext().getString(R.string.range));
     specificGroupContainer.setVisibility(View.GONE);
     rangeGroupContainer.setVisibility(View.VISIBLE);
   } else {
     timing.setText(AppUtil.getContext().getString(R.string.specific));
     specificGroupContainer.setVisibility(View.VISIBLE);
     rangeGroupContainer.setVisibility(View.GONE);
   }
 }
 private void generateNumberTimePerDay() {
   ReminderItem remind = ReminderList.getInstance().getCurrentReminder();
   if (remind == null) {
     return;
   }
   int diffMinutes =
       (remind.getEndTime().hour * 60 + remind.getEndTime().minute)
           - (remind.getStartTime().hour * 60 + remind.getStartTime().minute);
   int max = Math.max(diffMinutes / 10, 1);
   remind.setNumberPerDay(Math.min(remind.getNumberPerDay(), max));
   List<String> perDayList = new ArrayList<>();
   for (int i = 0; i < max; i++) {
     perDayList.add(Integer.toString(i + 1));
   }
   ArrayAdapter<String> spinnerArrayAdapter =
       new ArrayAdapter<>(
           parent.getContext(), R.layout.support_simple_spinner_dropdown_item, perDayList);
   spinnerArrayAdapter.setDropDownViewResource(R.layout.simple_drop_down_item);
   timeSpinner.setAdapter(spinnerArrayAdapter);
   timeSpinner.setSelection(remind.getNumberPerDay() - 1);
 }