Only call after complete for calendars/recurring

pull/1061/head
Alex Baker 4 years ago
parent 887e926a27
commit 24fd1acb68

@ -87,8 +87,8 @@ class TaskDao @Inject constructor(
val deletionDateModified = task.deletionDate != original?.deletionDate ?: 0
val justCompleted = completionDateModified && task.isCompleted
val justDeleted = deletionDateModified && task.isDeleted
if (justCompleted) {
workManager.afterComplete(task, original)
if (justCompleted && (task.isRecurring || !task.calendarURI.isNullOrBlank())) {
workManager.afterComplete(task)
}
if (justCompleted || justDeleted) {

Loading…
Cancel
Save