Skip to content
Snippets Groups Projects
Commit 5d548fea authored by Felix Paul Kühne's avatar Felix Paul Kühne Committed by Diogo Simao Marques
Browse files

Donation: add missing popover sourceviews

This resolves exceptions on iPad.
parent a3d2c560
No related branches found
Tags 3.5.3 tv3.5.3
No related merge requests found
......@@ -214,6 +214,7 @@ UITextContentType const UITextContentTypeCreditCardSecurityCode = @"UITextConten
handler:^(UIAlertAction * _Nonnull action){
[self dismissViewControllerAnimated:YES completion:nil];
}]];
alertController.popoverPresentationController.sourceView = self.confettiView;
[self presentViewController:alertController animated:YES completion:nil];
}
......@@ -231,6 +232,7 @@ UITextContentType const UITextContentTypeCreditCardSecurityCode = @"UITextConten
handler:^(UIAlertAction * _Nonnull action) {
[self hideInputElements:NO];
}]];
alertController.popoverPresentationController.sourceView = self.confettiView;
[self presentViewController:alertController animated:YES completion:nil];
}
......
......@@ -462,6 +462,7 @@ typedef void (^CompletionHandler)(PKPaymentAuthorizationStatus);
handler:^(UIAlertAction * _Nonnull action){
[self dismissViewControllerAnimated:YES completion:nil];
}]];
alertController.popoverPresentationController.sourceView = self.confettiView;
[self presentViewController:alertController animated:YES completion:nil];
}
......@@ -497,6 +498,7 @@ typedef void (^CompletionHandler)(PKPaymentAuthorizationStatus);
handler:^(UIAlertAction * _Nonnull action){
[self dismissViewControllerAnimated:YES completion:nil];
}]];
alertController.popoverPresentationController.sourceView = self.confettiView;
[self presentViewController:alertController animated:YES completion:nil];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment