diff --git a/DuckDuckGo/AppDelegate.swift b/DuckDuckGo/AppDelegate.swift index 1645517216..02a3f18a72 100644 --- a/DuckDuckGo/AppDelegate.swift +++ b/DuckDuckGo/AppDelegate.swift @@ -526,7 +526,7 @@ import WebKit await vpnWorkaround.installRedditSessionWorkaround() if #available(iOS 17.0, *) { - await VPNSnoozeLiveActivityManager.shared.endSnoozeActivityIfNecessary() + await VPNSnoozeLiveActivityManager().endSnoozeActivityIfNecessary() } } diff --git a/DuckDuckGo/NetworkProtectionStatusViewModel.swift b/DuckDuckGo/NetworkProtectionStatusViewModel.swift index 5810d0c76d..84fe60a5f7 100644 --- a/DuckDuckGo/NetworkProtectionStatusViewModel.swift +++ b/DuckDuckGo/NetworkProtectionStatusViewModel.swift @@ -450,7 +450,7 @@ final class NetworkProtectionStatusViewModel: ObservableObject { try? await activeSession.sendProviderMessage(.startSnooze(defaultDuration)) if #available(iOS 17.0, *) { - await VPNSnoozeLiveActivityManager.shared.start(endDate: Date().addingTimeInterval(defaultDuration)) + await VPNSnoozeLiveActivityManager().start(endDate: Date().addingTimeInterval(defaultDuration)) } } @@ -464,7 +464,7 @@ final class NetworkProtectionStatusViewModel: ObservableObject { try? await activeSession.sendProviderMessage(.cancelSnooze) if #available(iOS 17.0, *) { - await VPNSnoozeLiveActivityManager.shared.endSnoozeActivity() + await VPNSnoozeLiveActivityManager().endSnoozeActivity() } } diff --git a/DuckDuckGo/VPNSnoozeLiveActivityManager.swift b/DuckDuckGo/VPNSnoozeLiveActivityManager.swift index c1ed83dd29..99f988e3ec 100644 --- a/DuckDuckGo/VPNSnoozeLiveActivityManager.swift +++ b/DuckDuckGo/VPNSnoozeLiveActivityManager.swift @@ -23,7 +23,6 @@ import NetworkProtection @available(iOS 17.0, *) final class VPNSnoozeLiveActivityManager: ObservableObject { - static let shared = VPNSnoozeLiveActivityManager() // TODO: Remove singleton private let snoozeTimingStore: NetworkProtectionSnoozeTimingStore