Set CalDAV completion percentage

pull/757/head
Alex Baker 6 years ago
parent 829f849603
commit e9a5baabee

@ -128,8 +128,13 @@ public class CaldavConverter {
} else { } else {
remote.setDue(null); remote.setDue(null);
} }
remote.setCompletedAt( if (task.isCompleted()) {
task.isCompleted() ? new Completed(new DateTime(task.getCompletionDate())) : null); remote.setCompletedAt(new Completed(new DateTime(task.getCompletionDate())));
remote.setPercentComplete(100);
} else if (remote.getCompletedAt() != null) {
remote.setCompletedAt(null);
remote.setPercentComplete(0);
}
if (task.isRecurring()) { if (task.isRecurring()) {
try { try {
String rrule = task.getRecurrenceWithoutFrom().replace("RRULE:", ""); String rrule = task.getRecurrenceWithoutFrom().replace("RRULE:", "");

Loading…
Cancel
Save