rc/android-ios-parity #1
@@ -129,6 +129,10 @@ class WidgetDataRepository internal constructor(private val context: Context) {
|
|||||||
store.writePendingCompletionIds(current)
|
store.writePendingCompletionIds(current)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Whether a task id is currently queued for optimistic completion. */
|
||||||
|
suspend fun isPendingCompletion(taskId: Long): Boolean =
|
||||||
|
taskId in store.readPendingCompletionIds()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compute the three summary counters shown on the widget:
|
* Compute the three summary counters shown on the widget:
|
||||||
* - overdueCount — tasks with `isOverdue == true`
|
* - overdueCount — tasks with `isOverdue == true`
|
||||||
|
|||||||
Reference in New Issue
Block a user