From 6618305e8966d20b2f6bca91f3bd34d1b0e02878 Mon Sep 17 00:00:00 2001 From: Bob Sun Date: Wed, 22 Feb 2017 13:11:27 +0800 Subject: [PATCH] fix issue #18: broken 3d touch cased by name of shortcut item --- pass/AppDelegate.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pass/AppDelegate.swift b/pass/AppDelegate.swift index 9fd3f9a..3a7bd69 100644 --- a/pass/AppDelegate.swift +++ b/pass/AppDelegate.swift @@ -26,7 +26,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { SVProgressHUD.setMinimumSize(CGSize(width: 150, height: 100)) passcodeLockPresenter.present() if let shortcutItem = launchOptions?[UIApplicationLaunchOptionsKey.shortcutItem] as? UIApplicationShortcutItem { - if shortcutItem.type == "me.mssun.pass.search" { + if shortcutItem.type == "me.mssun.passforios.search" { self.perform(#selector(postSearchNotification), with: nil, afterDelay: 0.4) } } @@ -38,7 +38,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { } func application(_ application: UIApplication, performActionFor shortcutItem: UIApplicationShortcutItem, completionHandler: @escaping (Bool) -> Void) { - if shortcutItem.type == "me.mssun.pass.search" { + if shortcutItem.type == "me.mssun.passforios.search" { let tabBarController = self.window!.rootViewController as! UITabBarController tabBarController.selectedIndex = 0 let navigationController = tabBarController.selectedViewController as! UINavigationController