Browse Source

VLCOpenInActivity: Fix open in activity for iPads

Soomin Lee 5 years ago
parent
commit
5b542dc3dd
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Sources/VLCOpenInActivity.m

+ 3 - 0
Sources/VLCOpenInActivity.m

@@ -169,6 +169,9 @@
                                                          handler:^(UIAlertAction * _Nonnull action) {
                                                          handler:^(UIAlertAction * _Nonnull action) {
                                                              [self activityDidFinish:NO];
                                                              [self activityDidFinish:NO];
                                                          }];
                                                          }];
+
+    actionController.popoverPresentationController.sourceView = self.presentingViewController.view;
+
     [actionController addAction:cancelAction];
     [actionController addAction:cancelAction];
     [self.presentingViewController presentViewController:actionController animated:YES completion:nil];
     [self.presentingViewController presentViewController:actionController animated:YES completion:nil];
 }
 }