Explorar el Código

don't try to bring application to foreground when playback starts doesn't work on device and would likely lead to rejection

Tobias Conradi hace 10 años
padre
commit
4b8a4ce79c
Se han modificado 1 ficheros con 0 adiciones y 7 borrados
  1. 0 7
      Sources/VLCAppDelegate.m

+ 0 - 7
Sources/VLCAppDelegate.m

@@ -694,13 +694,6 @@
     }
 
     [self openMediaFromManagedObject:managedObject];
-    UIApplication *application = [UIApplication sharedApplication];
-
-    BOOL appShouldBeOpenedForPlayback = [[NSUserDefaults standardUserDefaults] boolForKey:kVLCSettingOpenAppForPlayback];
-    BOOL appIsInBackground = [application applicationState] == UIApplicationStateBackground;
-    if (appShouldBeOpenedForPlayback && appIsInBackground) {
-        [application openURL:[NSURL URLWithString:@"vlc-x-callback://x-callback-url"]];
-    }
 }
 
 - (NSDictionary *)nowPlayingResponseDict {