Ignore interaction if not eligible for shortcuts

This commit is contained in:
Davide De Rosa 2019-11-09 12:32:58 +01:00
parent 2d0680db54
commit 441b1059cf
1 changed files with 3 additions and 0 deletions

View File

@ -161,6 +161,9 @@ extension UISplitViewController {
extension AppDelegate {
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
guard ProductManager.shared.isEligible(forFeature: .siriShortcuts) else {
return false
}
guard let interaction = userActivity.interaction else {
return false
}