Skip to content

Commit

Permalink
changed small things in v1.1.2
Browse files Browse the repository at this point in the history
image is now stored in NSData, hopefully to make it more reliable
  • Loading branch information
yandevelop committed Nov 20, 2021
1 parent dc3a6de commit 52887ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 5 additions & 1 deletion Tweak.x
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ double itemCount = 0;
%hook PXNavigationListGadget
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if ([[[NSUserDefaults alloc] init] boolForKey:@"HiddenAlbumVisible"] == 1) {
if (indexPath.row == 1 && [[[tableView cellForRowAtIndexPath: indexPath] imageView] image] == [UIImage systemImageNamed:@"eye.slash"]) {
NSData *cellImgData = UIImagePNGRepresentation([[[tableView cellForRowAtIndexPath: indexPath] imageView] image]);
NSData *eyeData = UIImagePNGRepresentation([UIImage systemImageNamed:@"eye.slash"]);
BOOL isCompare = [cellImgData isEqualToData:eyeData];
//[[[tableView cellForRowAtIndexPath: indexPath] imageView] image] == [UIImage systemImageNamed:@"eye.slash"]
if (indexPath.row == 1 && isCompare) {
LAContext *context = [[LAContext alloc] init];
NSError *authError = nil;
if ([context canEvaluatePolicy:policy error:&authError]) {
Expand Down

0 comments on commit 52887ec

Please sign in to comment.