Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
4b8a4ce79c
1 muutettua tiedostoa jossa 0 lisäystä ja 7 poistoa
  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 {