瀏覽代碼

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 年之前
父節點
當前提交
4b8a4ce79c
共有 1 個文件被更改,包括 0 次插入7 次删除
  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 {