summaryrefslogtreecommitdiffstats
path: root/QuickActions/Tweak.x
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2023-04-24 18:34:44 -0700
committerCameron Katri <me@cameronkatri.com>2023-04-24 18:34:44 -0700
commita8eb91f5bcb94e363a81977e30678fb3a29dfb88 (patch)
treea2d25a2743b2e22dd21852819b1d959f982777b9 /QuickActions/Tweak.x
parentbcdacecd7b7fca9b5f515d25f11ffa1a2936cbb9 (diff)
downloadtweaks-main.tar.gz
tweaks-main.tar.zst
tweaks-main.zip
Fix iOS 15+HEADmain
Diffstat (limited to 'QuickActions/Tweak.x')
-rw-r--r--QuickActions/Tweak.x10
1 files changed, 3 insertions, 7 deletions
diff --git a/QuickActions/Tweak.x b/QuickActions/Tweak.x
index 7e9a505..8e6af39 100644
--- a/QuickActions/Tweak.x
+++ b/QuickActions/Tweak.x
@@ -22,20 +22,16 @@
void openApplication(NSString *bundleID)
{
- FBSOpenApplicationOptions* opts = [%c(FBSOpenApplicationOptions) optionsWithDictionary:@{
+ FBSOpenApplicationOptions *opts = [%c(FBSOpenApplicationOptions) optionsWithDictionary:@{
@"__LaunchOrigin" : @"BulletinDestinationCoverSheet",
@"__PromptUnlockDevice" : @YES,
@"__UnlockDevice" : @YES,
@"__LaunchImage" : @"",
@"__Actions" : @[]
}];
- FBSystemServiceOpenApplicationRequest* request = [%c(FBSystemServiceOpenApplicationRequest) request];
- request.options = opts;
- request.bundleIdentifier = bundleID;
- request.trusted = YES;
- request.clientProcess = [[%c(FBProcessManager) sharedInstance] systemApplicationProcess];
- [[%c(SBMainWorkspace) sharedInstance] systemService:[%c(FBSystemService) sharedInstance] handleOpenApplicationRequest:request withCompletion:^{}];
+ FBSOpenApplicationService *openService = [[%c(FBSOpenApplicationService) alloc] init];
+ [openService openApplication:bundleID withOptions:opts completion:nil];
}
%hook CSQuickActionsView