Register/deregister geofences on deletion change

pull/281/head
Alex Baker 10 years ago
parent ea47169f96
commit f081c83b8b

@ -359,10 +359,13 @@ public class TaskDao {
task.markSaved();
boolean completionDateModified = values.containsKey(Task.COMPLETION_DATE.name);
boolean deletionDateModified = values.containsKey(Task.DELETION_DATE.name);
if(completionDateModified && task.isCompleted()) {
afterComplete(task);
} else if (deletionDateModified && task.isDeleted()) {
afterComplete(task);
} else {
if (completionDateModified) {
if (completionDateModified || deletionDateModified) {
geofenceService.setupGeofences(task.getId());
}
if(values.containsKey(Task.DUE_DATE.name) ||

Loading…
Cancel
Save