mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
Fix “YTShareRequestViewController“
This commit is contained in:
parent
45ec2505b3
commit
754e3e9c98
1 changed files with 6 additions and 2 deletions
|
|
@ -151,8 +151,12 @@ static BOOL showNativeShareSheet(NSString *serializedShareEntity) {
|
|||
/*
|
||||
%hook YTShareRequestViewController
|
||||
- (id)initWithService:(id)_service parentResponder:(id)_parentResponder {
|
||||
// disable the default share sheet behavior and force the app to call [YTAccountScopedCommandRouter handleCommand]
|
||||
return NULL;
|
||||
id result = %orig;
|
||||
// disable the default share sheet behavior and force the app to call [YTAccountScopedCommandRouter handleCommand] if available
|
||||
if ([_parentResponder respondsToSelector:@selector(handleCommand:entry:fromView:sender:completionBlock:)]) {
|
||||
[_parentResponder handleCommand:nil entry:nil fromView:nil sender:nil completionBlock:nil];
|
||||
}
|
||||
return result;
|
||||
}
|
||||
%end
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue