-
Notifications
You must be signed in to change notification settings - Fork 6
/
Tweak.x
45 lines (36 loc) · 1.21 KB
/
Tweak.x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@interface UIActivityContentViewController
- (void) updateContentWithPeopleProxies:(id)arg1 shareProxies:(id)arg2 actionProxies:(id)arg3 activitiesByUUID:(id)arg4 nearbyCountSlotID:(id)arg5 animated:(BOOL)arg6;
@end
@interface _UIActivityUserDefaultsViewController
@property NSArray * favoritesProxies;
@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) updateContentWithPeopleProxies:(NSArray*)arg1 shareProxies:(NSArray*)arg2 actionProxies:(NSArray*)arg3 activitiesByUUID:(NSMutableDictionary*)arg4 nearbyCountSlotID:(id)arg5 animated:(BOOL)arg6 {
%orig([NSMutableArray new], arg2, arg3, arg4, arg5, arg6);
}
%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