parent
c546828df3
commit
545aceb7af
1 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||||
passcodeLockPresenter.present()
|
passcodeLockPresenter.present()
|
||||||
if let shortcutItem = launchOptions?[UIApplicationLaunchOptionsKey.shortcutItem] as? UIApplicationShortcutItem {
|
if let shortcutItem = launchOptions?[UIApplicationLaunchOptionsKey.shortcutItem] as? UIApplicationShortcutItem {
|
||||||
var searchType = Bundle.main.bundleIdentifier!
|
var searchType = Bundle.main.bundleIdentifier!
|
||||||
searchType.append("search")
|
searchType.append(".search")
|
||||||
if shortcutItem.type == searchType {
|
if shortcutItem.type == searchType {
|
||||||
self.perform(#selector(postSearchNotification), with: nil, afterDelay: 0.4)
|
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) {
|
func application(_ application: UIApplication, performActionFor shortcutItem: UIApplicationShortcutItem, completionHandler: @escaping (Bool) -> Void) {
|
||||||
var searchType = Bundle.main.bundleIdentifier!
|
var searchType = Bundle.main.bundleIdentifier!
|
||||||
searchType.append("search")
|
searchType.append(".search")
|
||||||
if shortcutItem.type == searchType {
|
if shortcutItem.type == searchType {
|
||||||
let tabBarController = self.window!.rootViewController as! UITabBarController
|
let tabBarController = self.window!.rootViewController as! UITabBarController
|
||||||
tabBarController.selectedIndex = 0
|
tabBarController.selectedIndex = 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue