forked from Devvix/NoCShare
Added the ability to reorder/remove AirDrop from the favorites menu. Added icon.
This commit is contained in:
41
Tweak.x
41
Tweak.x
@ -1,15 +1,44 @@
|
|||||||
@interface UIActivityContentViewController
|
@interface UIActivityContentViewController
|
||||||
- (void) viewDidLoad;
|
|
||||||
@property NSArray * airDropSlots;
|
|
||||||
- (void) setAirDropSlots:(NSArray*)arg1;
|
- (void) setAirDropSlots:(NSArray*)arg1;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
%hook UIActivityContentViewController
|
@interface _UIActivityUserDefaultsViewController
|
||||||
- (void) viewDidLoad {
|
@property NSArray * favoritesProxies;
|
||||||
self.airDropSlots = [NSMutableArray new];
|
@property NSArray * suggestionProxies;
|
||||||
}
|
- (void) setFavoritesProxies:(NSArray*)arg1;
|
||||||
|
- (void) setSuggestionProxies:(NSArray*)arg1;
|
||||||
|
- (void) makeEditable:(NSArray*)arg1;
|
||||||
|
@end
|
||||||
|
|
||||||
|
@interface UserAP
|
||||||
|
@property BOOL canEdit;
|
||||||
|
@property BOOL canMove;
|
||||||
|
@end
|
||||||
|
|
||||||
|
|
||||||
|
%hook UIActivityContentViewController
|
||||||
- (void) setAirDropSlots:(NSArray*)arg1 {
|
- (void) setAirDropSlots:(NSArray*)arg1 {
|
||||||
//Do nothing
|
//Do nothing
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
%hook _UIActivityUserDefaultsViewController
|
||||||
|
- (void) setFavoritesProxies:(NSArray*)arg1 {
|
||||||
|
%orig;
|
||||||
|
[self makeEditable:self.favoritesProxies];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void) setSuggestionProxies:(NSArray*)arg1 {
|
||||||
|
%orig;
|
||||||
|
[self makeEditable:self.suggestionProxies];
|
||||||
|
}
|
||||||
|
|
||||||
|
%new
|
||||||
|
- (void) makeEditable:(NSArray*)arg1 {
|
||||||
|
for (UserAP * ap in arg1) {
|
||||||
|
ap.canEdit = YES;
|
||||||
|
ap.canMove = YES;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
%end
|
5
control
5
control
@ -1,9 +1,12 @@
|
|||||||
Package: com.devvix.nocshare
|
Package: com.devvix.nocshare
|
||||||
Name: NoCShare
|
Name: NoCShare
|
||||||
Depends: mobilesubstrate
|
Depends: mobilesubstrate
|
||||||
Version: 1.0.0
|
Version: 1.1.0
|
||||||
Architecture: iphoneos-arm
|
Architecture: iphoneos-arm
|
||||||
Description: Remove annoying airdrop and contacts from share menu.
|
Description: Remove annoying airdrop and contacts from share menu.
|
||||||
Maintainer: Devvix
|
Maintainer: Devvix
|
||||||
Author: Devvix
|
Author: Devvix
|
||||||
Section: Tweaks
|
Section: Tweaks
|
||||||
|
Icon: https://repo.devvix.com/assets/TweakIcons/nocshareicon.jpg
|
||||||
|
Depiction: https://repo.devvix.com/depictions/?p=com.devvix.nocshare
|
||||||
|
SileoDepiction: https://repo.devvix.com/sileodepictions/com.devvix.nocshare/depiction.json
|
Reference in New Issue
Block a user