From 545aceb7afacdf6fc3f0149cb405c7f89d956739 Mon Sep 17 00:00:00 2001 From: Yishi Lin Date: Fri, 9 Jun 2017 18:39:52 +0800 Subject: [PATCH] Fix bug of hard press search - bug introduced in d86ee90eb73af2e608ca35c0648d387affc9cb6e --- pass/AppDelegate.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pass/AppDelegate.swift b/pass/AppDelegate.swift index 7b20e1a..5500e98 100644 --- a/pass/AppDelegate.swift +++ b/pass/AppDelegate.swift @@ -30,7 +30,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { passcodeLockPresenter.present() if let shortcutItem = launchOptions?[UIApplicationLaunchOptionsKey.shortcutItem] as? UIApplicationShortcutItem { var searchType = Bundle.main.bundleIdentifier! - searchType.append("search") + searchType.append(".search") if shortcutItem.type == searchType { self.perform(#selector(postSearchNotification), with: nil, afterDelay: 0.4) } @@ -45,7 +45,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, performActionFor shortcutItem: UIApplicationShortcutItem, completionHandler: @escaping (Bool) -> Void) { var searchType = Bundle.main.bundleIdentifier! - searchType.append("search") + searchType.append(".search") if shortcutItem.type == searchType { let tabBarController = self.window!.rootViewController as! UITabBarController tabBarController.selectedIndex = 0