From 31def18b7df2812b7e89c1a469599c4148c49705 Mon Sep 17 00:00:00 2001 From: Michael Scoff Date: Wed, 7 Feb 2018 17:27:25 -0800 Subject: [PATCH] Remove splash screen on applicationWillEnterForeground (#292) * Remove splash screen on applicationWillEnterForeground * Add applicationWillEnterForeground --- Trust/AppDelegate.swift | 5 +++++ Trust/Protection/Coordinators/ProtectionCoordinator.swift | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/Trust/AppDelegate.swift b/Trust/AppDelegate.swift index 158a0fd5a..855954aed 100644 --- a/Trust/AppDelegate.swift +++ b/Trust/AppDelegate.swift @@ -44,6 +44,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDele func applicationDidEnterBackground(_ application: UIApplication) { protectionCoordinator.applicationDidEnterBackground() } + + func applicationWillEnterForeground(_ application: UIApplication) { + protectionCoordinator.applicationWillEnterForeground() + } + func application(_ application: UIApplication, shouldAllowExtensionPointIdentifier extensionPointIdentifier: UIApplicationExtensionPointIdentifier) -> Bool { if extensionPointIdentifier == UIApplicationExtensionPointIdentifier.keyboard { return false diff --git a/Trust/Protection/Coordinators/ProtectionCoordinator.swift b/Trust/Protection/Coordinators/ProtectionCoordinator.swift index 96582f3f3..758f2790f 100644 --- a/Trust/Protection/Coordinators/ProtectionCoordinator.swift +++ b/Trust/Protection/Coordinators/ProtectionCoordinator.swift @@ -39,4 +39,8 @@ class ProtectionCoordinator: Coordinator { func applicationDidEnterBackground() { splashCoordinator.start() } + + func applicationWillEnterForeground() { + splashCoordinator.stop() + } }