Explorar el Código

Replace deprecated openURL calls (Fix #110)

Signed-off-by: Carola Nitz <nitz.carola@googlemail.com>
Victor Gama hace 7 años
padre
commit
69b1d58b11
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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];