Skip to content

Commit

Permalink
Update widgets when task is marked completed
Browse files Browse the repository at this point in the history
See #156
  • Loading branch information
naveensingh committed Jan 24, 2025
1 parent b2c613e commit 561330e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import android.app.IntentService
import android.content.Intent
import org.fossify.calendar.extensions.eventsDB
import org.fossify.calendar.extensions.updateTaskCompletion
import org.fossify.calendar.extensions.updateWidgets
import org.fossify.calendar.helpers.ACTION_MARK_COMPLETED
import org.fossify.calendar.helpers.EVENT_ID
import org.fossify.calendar.helpers.EVENT_OCCURRENCE_TS
Expand All @@ -24,6 +25,7 @@ class MarkCompletedService : IntentService("MarkCompleted") {

if (task != null) {
updateTaskCompletion(task, completed = true)
updateWidgets()
}
}
}
Expand Down

0 comments on commit 561330e

Please sign in to comment.