mirror of
https://github.com/NohamR/TrollDecrypt-tvOS.git
synced 2026-07-11 22:41:37 +00:00
add "Show in Filza" button
This commit is contained in:
16
TDUtils.m
16
TDUtils.m
@@ -225,14 +225,24 @@ void bfinject_rocknroll(pid_t pid, NSString *appName, NSString *version) {
|
|||||||
[alertController dismissViewControllerAnimated:NO completion:nil];
|
[alertController dismissViewControllerAnimated:NO completion:nil];
|
||||||
|
|
||||||
doneController = [UIAlertController alertControllerWithTitle:@"Decryption Complete!" message:[NSString stringWithFormat:@"IPA file saved to:\n%@", [dd IPAPath]] preferredStyle:UIAlertControllerStyleAlert];
|
doneController = [UIAlertController alertControllerWithTitle:@"Decryption Complete!" message:[NSString stringWithFormat:@"IPA file saved to:\n%@", [dd IPAPath]] preferredStyle:UIAlertControllerStyleAlert];
|
||||||
|
|
||||||
UIAlertAction *okAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Ok", @"Ok") style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
|
UIAlertAction *okAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Ok", @"Ok") style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
|
||||||
NSLog(@"[trolldecrypt] Ok action");
|
|
||||||
[doneController dismissViewControllerAnimated:NO completion:nil];
|
|
||||||
[kw removeFromSuperview];
|
[kw removeFromSuperview];
|
||||||
kw.hidden = YES;
|
kw.hidden = YES;
|
||||||
}];
|
}];
|
||||||
|
|
||||||
[doneController addAction:okAction];
|
[doneController addAction:okAction];
|
||||||
|
|
||||||
|
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"filza://"]]) {
|
||||||
|
UIAlertAction *openAction = [UIAlertAction actionWithTitle:@"Show in Filza" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
|
||||||
|
[kw removeFromSuperview];
|
||||||
|
kw.hidden = YES;
|
||||||
|
|
||||||
|
NSString *urlString = [NSString stringWithFormat:@"filza://view%@", [dd IPAPath]];
|
||||||
|
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString] options:@{} completionHandler:nil];
|
||||||
|
}];
|
||||||
|
[doneController addAction:openAction];
|
||||||
|
}
|
||||||
|
|
||||||
[root presentViewController:doneController animated:YES completion:nil];
|
[root presentViewController:doneController animated:YES completion:nil];
|
||||||
}); // dispatch on main
|
}); // dispatch on main
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user