Sfoglia il codice sorgente

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

Tobias Conradi 10 anni fa
parent
commit
4b8a4ce79c
1 ha cambiato i file con 0 aggiunte e 7 eliminazioni
  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 {