Selaa lähdekoodia

Replace deprecated openURL calls (Fix #110)

Signed-off-by: Carola Nitz <nitz.carola@googlemail.com>
Victor Gama 7 vuotta sitten
vanhempi
commit
69b1d58b11
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      Sources/VLCPlaybackController.m

+ 2 - 2
Sources/VLCPlaybackController.m

@@ -295,9 +295,9 @@ typedef NS_ENUM(NSUInteger, VLCAspectRatio) {
     [_shuffleStack removeAllObjects];
 
     if (_errorCallback && _mediaPlayer.state == VLCMediaPlayerStateError &&  !_sessionWillRestart)
-        [[UIApplication sharedApplication] openURL:_errorCallback];
+        [[UIApplication sharedApplication] openURL:_errorCallback options:@{} completionHandler:nil];
     else if (_successCallback && !_sessionWillRestart)
-        [[UIApplication sharedApplication] openURL:_successCallback];
+        [[UIApplication sharedApplication] openURL:_successCallback options:@{} completionHandler:nil];
 
     [[self remoteControlService] unsubscribeFromRemoteCommands];