fix issue #18: broken 3d touch cased by name of shortcut item
This commit is contained in:
parent
a2bcbe1804
commit
6618305e89
1 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||||
SVProgressHUD.setMinimumSize(CGSize(width: 150, height: 100))
|
SVProgressHUD.setMinimumSize(CGSize(width: 150, height: 100))
|
||||||
passcodeLockPresenter.present()
|
passcodeLockPresenter.present()
|
||||||
if let shortcutItem = launchOptions?[UIApplicationLaunchOptionsKey.shortcutItem] as? UIApplicationShortcutItem {
|
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)
|
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) {
|
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
|
let tabBarController = self.window!.rootViewController as! UITabBarController
|
||||||
tabBarController.selectedIndex = 0
|
tabBarController.selectedIndex = 0
|
||||||
let navigationController = tabBarController.selectedViewController as! UINavigationController
|
let navigationController = tabBarController.selectedViewController as! UINavigationController
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue