Skip to content

Commit

Permalink
fixes ipad crash
Browse files Browse the repository at this point in the history
  • Loading branch information
jlippold committed Mar 7, 2019
1 parent 4474837 commit 0c7937d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Tweak.xm
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ static void fullList() {
style:UIAlertActionStyleDestructive
handler:^(UIAlertAction * action) {}];
[alert addAction:cancel];
alert.popoverPresentationController.sourceView = self.view;
[self.navigationController presentViewController:alert animated:YES completion:nil];
}

Expand Down Expand Up @@ -435,6 +436,7 @@ static void fullList() {
[alert addAction:reviews];
}
[alert addAction:ok];
alert.popoverPresentationController.sourceView = self.view;
[self.navigationController presentViewController:alert animated:YES completion:nil];

}
Expand All @@ -460,6 +462,7 @@ static void fullList() {
[alert addAction:working];
[alert addAction:notworking];
[alert addAction:cancel];
alert.popoverPresentationController.sourceView = self.view;
[self.navigationController presentViewController:alert animated:YES completion:nil];

}
Expand Down Expand Up @@ -662,7 +665,7 @@ static void fullList() {
userInfo = @{
@"deviceId" : deviceId,
@"iOSVersion" : systemVersion,
@"tweakCompatVersion": @"0.1.2",
@"tweakCompatVersion": @"0.1.4",
@"packageIndexed": @(packageExists),
@"packageVersionIndexed": @(versionExists),
@"packageStatus": packageStatus,
Expand Down Expand Up @@ -743,6 +746,7 @@ static void fullList() {
message:message preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *ok = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil];
[alert addAction:ok];
alert.popoverPresentationController.sourceView = self.view;
[self presentViewController:alert animated:YES completion:nil];
}
%end
Expand Down
2 changes: 1 addition & 1 deletion control
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: bz.jed.tweakcompatible
Name: tweakCompatible
Depends: mobilesubstrate
Version: 0.1.2
Version: 0.1.4
Architecture: iphoneos-arm
Description: Adds a way to check tweak compatibility in cydia
Maintainer: Jed
Expand Down

0 comments on commit 0c7937d

Please sign in to comment.