Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
Check if ENF is enabled before disabling it
Browse files Browse the repository at this point in the history
  • Loading branch information
30mar committed May 4, 2023
1 parent eec0dcb commit 3366804
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, CoronaWarnAppDelegate, Re
UNUserNotificationCenter.current().removeAllPendingNotificationRequests()

// Disable ExposureNotification
disableExposureNotification()
if ENAExposureManager().exposureManagerState.enabled {
disableExposureNotification()
}

// Stop and delete error logging.
try? elsService.stopAndDeleteLog()
Expand Down

0 comments on commit 3366804

Please sign in to comment.