Esempio n. 1
0
 @Override
 protected String writeToModelAfterInitialized(Task task) {
   long dueDate = dateAndTimePicker.constructDueDate();
   if (dueDate != task.getValue(Task.DUE_DATE)) // Clear snooze if due date has changed
   task.setValue(Task.REMINDER_SNOOZE, 0L);
   task.setValue(Task.DUE_DATE, dueDate);
   return null;
 }
Esempio n. 2
0
 public boolean isDeadlineSet() {
   return (dateAndTimePicker != null && dateAndTimePicker.constructDueDate() != 0);
 }