mirror of
https://github.com/lint/PhotoCtrl
synced 2025-07-01 02:26:47 +00:00
Fix new album crash
This commit is contained in:
8
Tweak.xm
8
Tweak.xm
@ -3,6 +3,8 @@
|
||||
@property(assign,nonatomic) id delegate;
|
||||
@property(assign,nonatomic) NSArray* visibleCells;
|
||||
@property(assign,nonatomic) NSArray* indexPathsForVisibleItems;
|
||||
@property(assign,nonatomic) id reorderDelegate;
|
||||
@property(assign,nonatomic) id selectionDelegate;
|
||||
-(id) idexPathForItemAtPoint:(id) arg1;
|
||||
-(id) cellForItemAtIndexPath:(id) arg1;
|
||||
-(id) indexPathForCell:(id) arg1;
|
||||
@ -127,6 +129,8 @@
|
||||
%new
|
||||
-(void)ctrlScreenTapRecognized:(id) sender {
|
||||
|
||||
if ([self selectionDelegate] && ![self reorderDelegate]) {
|
||||
|
||||
id gvController = [self delegate];
|
||||
|
||||
if ([gvController ctrlEnabled]){
|
||||
@ -225,12 +229,15 @@
|
||||
}
|
||||
|
||||
[gvController updateCtrlButton];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
-(id) dequeueReusableCellWithReuseIdentifier: (id) arg1 forIndexPath:(id) arg2{
|
||||
id orig = %orig;
|
||||
|
||||
if ([self selectionDelegate] && ![self reorderDelegate] && [orig isKindOfClass:[%c(PUPhotosGridCell) class]]) {
|
||||
|
||||
id gvController = [self delegate];
|
||||
|
||||
if ([orig ctrlSelectOverlayView]){
|
||||
@ -250,6 +257,7 @@
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return orig;
|
||||
|
Reference in New Issue
Block a user