mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-31 12:09:10 +00:00
Update uYouPlusPatches.xm
This commit is contained in:
parent
7f240104cd
commit
752ca2f693
1 changed files with 2 additions and 4 deletions
|
|
@ -154,10 +154,8 @@ static inline NSString* extractIdWithFormat(GPBUnknownFieldSet *fields, NSIntege
|
|||
if (!shareUrl)
|
||||
return %orig;
|
||||
|
||||
if ([NSUserDefaults.standardUserDefaults boolForKey:@"enableSystemShareSheet"]) {
|
||||
UIActivityViewController *activityViewController = [[UIActivityViewController alloc]initWithActivityItems:@[shareUrl] applicationActivities:nil];
|
||||
[[%c(YTUIUtils) topViewControllerForPresenting] presentViewController:activityViewController animated:YES completion:^{}];
|
||||
}
|
||||
UIActivityViewController *activityViewController = [[UIActivityViewController alloc]initWithActivityItems:@[shareUrl] applicationActivities:nil];
|
||||
[[%c(YTUIUtils) topViewControllerForPresenting] presentViewController:activityViewController animated:YES completion:^{}];
|
||||
}
|
||||
%end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue