|
|
@ -76,12 +76,11 @@ public class OnboardingSplashViewController: OnboardingBaseViewController {
|
|
|
|
|
|
|
|
|
|
|
|
Analytics.shared.track("Landing Screen Viewed")
|
|
|
|
Analytics.shared.track("Landing Screen Viewed")
|
|
|
|
|
|
|
|
|
|
|
|
let userDefaults = UserDefaults.standard
|
|
|
|
if UserDefaults.standard.bool(forKey: "wasUnlinked") {
|
|
|
|
if userDefaults.bool(forKey: "wasUnlinked") {
|
|
|
|
|
|
|
|
let alert = UIAlertController(title: NSLocalizedString("Device Unlinked", comment: ""), message: NSLocalizedString("Your device was unlinked successfully", comment: ""), preferredStyle: .alert)
|
|
|
|
let alert = UIAlertController(title: NSLocalizedString("Device Unlinked", comment: ""), message: NSLocalizedString("Your device was unlinked successfully", comment: ""), preferredStyle: .alert)
|
|
|
|
alert.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: ""), accessibilityIdentifier: nil, style: .default, handler: nil))
|
|
|
|
alert.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: ""), accessibilityIdentifier: nil, style: .default, handler: nil))
|
|
|
|
present(alert, animated: true, completion: nil)
|
|
|
|
present(alert, animated: true, completion: nil)
|
|
|
|
userDefaults.set(false, forKey: "wasUnlinked")
|
|
|
|
UserDefaults.removeAll()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|