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) id delegate;
|
||||||
@property(assign,nonatomic) NSArray* visibleCells;
|
@property(assign,nonatomic) NSArray* visibleCells;
|
||||||
@property(assign,nonatomic) NSArray* indexPathsForVisibleItems;
|
@property(assign,nonatomic) NSArray* indexPathsForVisibleItems;
|
||||||
|
@property(assign,nonatomic) id reorderDelegate;
|
||||||
|
@property(assign,nonatomic) id selectionDelegate;
|
||||||
-(id) idexPathForItemAtPoint:(id) arg1;
|
-(id) idexPathForItemAtPoint:(id) arg1;
|
||||||
-(id) cellForItemAtIndexPath:(id) arg1;
|
-(id) cellForItemAtIndexPath:(id) arg1;
|
||||||
-(id) indexPathForCell:(id) arg1;
|
-(id) indexPathForCell:(id) arg1;
|
||||||
@ -127,6 +129,8 @@
|
|||||||
%new
|
%new
|
||||||
-(void)ctrlScreenTapRecognized:(id) sender {
|
-(void)ctrlScreenTapRecognized:(id) sender {
|
||||||
|
|
||||||
|
if ([self selectionDelegate] && ![self reorderDelegate]) {
|
||||||
|
|
||||||
id gvController = [self delegate];
|
id gvController = [self delegate];
|
||||||
|
|
||||||
if ([gvController ctrlEnabled]){
|
if ([gvController ctrlEnabled]){
|
||||||
@ -226,11 +230,14 @@
|
|||||||
|
|
||||||
[gvController updateCtrlButton];
|
[gvController updateCtrlButton];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
-(id) dequeueReusableCellWithReuseIdentifier: (id) arg1 forIndexPath:(id) arg2{
|
-(id) dequeueReusableCellWithReuseIdentifier: (id) arg1 forIndexPath:(id) arg2{
|
||||||
id orig = %orig;
|
id orig = %orig;
|
||||||
|
|
||||||
|
if ([self selectionDelegate] && ![self reorderDelegate] && [orig isKindOfClass:[%c(PUPhotosGridCell) class]]) {
|
||||||
|
|
||||||
id gvController = [self delegate];
|
id gvController = [self delegate];
|
||||||
|
|
||||||
if ([orig ctrlSelectOverlayView]){
|
if ([orig ctrlSelectOverlayView]){
|
||||||
@ -250,6 +257,7 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return orig;
|
return orig;
|
||||||
|
2
control
2
control
@ -1,7 +1,7 @@
|
|||||||
Package: com.lint.photoctrl
|
Package: com.lint.photoctrl
|
||||||
Name: PhotoCtrl
|
Name: PhotoCtrl
|
||||||
Depends: mobilesubstrate
|
Depends: mobilesubstrate
|
||||||
Version: 1.0.0
|
Version: 1.0.1
|
||||||
Architecture: iphoneos-arm
|
Architecture: iphoneos-arm
|
||||||
Description: Adds a "ctrl + shift" like function for selecting photos.
|
Description: Adds a "ctrl + shift" like function for selecting photos.
|
||||||
Maintainer: lint <apieceoflint@protonmail.com>
|
Maintainer: lint <apieceoflint@protonmail.com>
|
||||||
|
Reference in New Issue
Block a user