iOS Live Activity Updates
Nucleic-Session: 665980BA-E8A5-4E84-9DF4-1757CF792353 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -51,9 +51,13 @@ final class LiveActivityManager {
|
|||||||
let needsYou = live.filter { $0.status.needsYou($0.disposition) }
|
let needsYou = live.filter { $0.status.needsYou($0.disposition) }
|
||||||
|
|
||||||
guard !running.isEmpty || !needsYou.isEmpty else {
|
guard !running.isEmpty || !needsYou.isEmpty else {
|
||||||
end()
|
finishWithDoneGlance(hostName: hostName, live: live)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// Work is active again — abort any pending "Done" dismissal so the glance doesn't clear
|
||||||
|
// out from under a run that just resumed (or a new one that just started).
|
||||||
|
dismissTask?.cancel()
|
||||||
|
dismissTask = nil
|
||||||
|
|
||||||
// Everything in flight or waiting on the user, attention-first (approvals, then waiting
|
// Everything in flight or waiting on the user, attention-first (approvals, then waiting
|
||||||
// input, then running), freshest within a rank. This is both the detail-row source and
|
// input, then running), freshest within a rank. This is both the detail-row source and
|
||||||
|
|||||||
Reference in New Issue
Block a user