mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Todo: Fix the animation delay later
This commit is contained in:
parent
71e6be4218
commit
e3482828bd
1 changed files with 3 additions and 1 deletions
|
|
@ -165,7 +165,9 @@ class LockScreenLiveActivityWindowManager {
|
|||
overlayAnimator.update(isLocked: false)
|
||||
|
||||
hideTask = Task { [weak self] in
|
||||
try? await Task.sleep(for: .seconds(max(Defaults[.waitInterval], 1.0)))
|
||||
//try? await Task.sleep(for: .milliseconds(450))
|
||||
try? await Task.sleep(for: .seconds(max(Defaults[.waitInterval], 0.7)))
|
||||
//try? await Task.sleep(for: .seconds(1.0))
|
||||
guard let self, !Task.isCancelled else { return }
|
||||
await MainActor.run {
|
||||
self.hideWithAnimation()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue