Remove splash screen on applicationWillEnterForeground (#292)

* Remove splash screen on applicationWillEnterForeground

* Add applicationWillEnterForeground
pull/4/head
Michael Scoff 7 years ago committed by Oleg Gordiichuk
parent 09bb758fc5
commit 31def18b7d
  1. 5
      Trust/AppDelegate.swift
  2. 4
      Trust/Protection/Coordinators/ProtectionCoordinator.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

@ -39,4 +39,8 @@ class ProtectionCoordinator: Coordinator {
func applicationDidEnterBackground() {
splashCoordinator.start()
}
func applicationWillEnterForeground() {
splashCoordinator.stop()
}
}

Loading…
Cancel
Save