mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-31 12:09:10 +00:00
Updated iPad version of ytns (experimental)
This commit is contained in:
parent
03591936d0
commit
7a4edbec64
1 changed files with 6 additions and 4 deletions
|
|
@ -159,12 +159,14 @@ static BOOL showNativeShareSheet(NSString *serializedShareEntity) {
|
|||
- (BOOL)handleCommand:(id)command entry:(id)_entry fromView:(id)_fromView sender:(id)_sender completionBlock:(id)_completionBlock {
|
||||
GPBExtensionDescriptor *shareEntityEndpointDescriptor = [%c(YTIShareEntityEndpoint) shareEntityEndpoint];
|
||||
if (![command hasExtension:shareEntityEndpointDescriptor])
|
||||
return %orig;
|
||||
YTIShareEntityEndpoint *shareEntityEndpoint = [command getExtension:shareEntityEndpointDescriptor];
|
||||
if(!shareEntityEndpoint || !shareEntityEndpoint.hasSerializedShareEntity || !shareEntityEndpoint.serializedShareEntity) {
|
||||
return %orig;
|
||||
YTIShareEntityEndpoint *shareEntityEndpoint = [command getExtension:shareEntityEndpointDescriptor];
|
||||
if(!shareEntityEndpoint.hasSerializedShareEntity)
|
||||
return %orig;
|
||||
if (!showNativeShareSheet(shareEntityEndpoint.serializedShareEntity))
|
||||
}
|
||||
if (!showNativeShareSheet(shareEntityEndpoint.serializedShareEntity)) {
|
||||
return %orig;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
%end
|
||||
|
|
|
|||
Loading…
Reference in a new issue