Remove annoying airdrop and contacts from share menu.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Tweak.x 1.4KB

4 jaren geleden
4 jaren geleden
4 jaren geleden
4 jaren geleden
4 jaren geleden
4 jaren geleden
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @interface UIActivityContentViewController
  2. //- (void) setAirDropSlots:(NSArray*)arg1;
  3. - (void) updateContentWithPeopleProxies:(id)arg1 shareProxies:(id)arg2 actionProxies:(id)arg3 activitiesByUUID:(id)arg4 nearbyCountSlotID:(id)arg5 animated:(BOOL)arg6;
  4. @end
  5. @interface _UIActivityUserDefaultsViewController
  6. @property NSArray * favoritesProxies;
  7. @property NSArray * suggestionProxies;
  8. - (void) setFavoritesProxies:(NSArray*)arg1;
  9. - (void) setSuggestionProxies:(NSArray*)arg1;
  10. - (void) makeEditable:(NSArray*)arg1;
  11. @end
  12. @interface UserAP
  13. @property BOOL canEdit;
  14. @property BOOL canMove;
  15. @end
  16. %hook UIActivityContentViewController
  17. /*- (void) setAirDropSlots:(NSArray*)arg1 {
  18. NSLog(@"NOCSHARE - Prevented AirDropSlots!");
  19. //Do nothing
  20. }*/
  21. - (void) updateContentWithPeopleProxies:(NSArray*)arg1 shareProxies:(NSArray*)arg2 actionProxies:(NSArray*)arg3 activitiesByUUID:(NSMutableDictionary*)arg4 nearbyCountSlotID:(id)arg5 animated:(BOOL)arg6 {
  22. %orig([NSMutableArray new], arg2, arg3, arg4, arg5, arg6);
  23. }
  24. %end
  25. %hook _UIActivityUserDefaultsViewController
  26. - (void) setFavoritesProxies:(NSArray*)arg1 {
  27. %orig;
  28. [self makeEditable:self.favoritesProxies];
  29. }
  30. - (void) setSuggestionProxies:(NSArray*)arg1 {
  31. %orig;
  32. [self makeEditable:self.suggestionProxies];
  33. }
  34. %new
  35. - (void) makeEditable:(NSArray*)arg1 {
  36. for (UserAP * ap in arg1) {
  37. ap.canEdit = YES;
  38. ap.canMove = YES;
  39. }
  40. }
  41. %end