Bug Fix -iPad: export e2e keys failed, there pops no window up where to save the keys

#1733

Do not pass the frame of the view to present the document interaction controller. The given rect is supposed to be in the coordinates of the view.
This commit is contained in:
Giom Foret
2018-01-17 12:26:40 +01:00
parent 08575cce72
commit 1ca8f66e1a
+1 -1
View File
@@ -3499,7 +3499,7 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
self->documentInteractionController = [UIDocumentInteractionController interactionControllerWithURL:keyExportsFile];
[self->documentInteractionController setDelegate:self];
if ([self->documentInteractionController presentOptionsMenuFromRect:self.view.frame inView:self.view animated:YES])
if ([self->documentInteractionController presentOptionsMenuFromRect:self.view.bounds inView:self.view animated:YES])
{
// We want to delete the temp keys file after it has been processed by the other app.
// We use [UIDocumentInteractionControllerDelegate didEndSendingToApplication] for that