1
0
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:
lint
2019-09-20 19:09:46 -04:00
parent 4cbf301cff
commit 4298d22e15
2 changed files with 106 additions and 98 deletions

View File

@ -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;

View File

@ -1,7 +1,7 @@
Package: com.lint.photoctrl
Name: PhotoCtrl
Depends: mobilesubstrate
Version: 1.0.0
Version: 1.0.1
Architecture: iphoneos-arm
Description: Adds a "ctrl + shift" like function for selecting photos.
Maintainer: lint <apieceoflint@protonmail.com>