Bladeren bron

Revert 'app delegate: update media list in background to speed-up launch'

This reverts commit 28ac2fc469b37520d1e9c870b074bbf9db98e685.

UICollectionView is not fully thread-safe so upgrading it indirectly in the background is a really bad idea
Felix Paul Kühne 10 jaren geleden
bovenliggende
commit
1d5d9a4e91
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      Sources/VLCAppDelegate.m

+ 2 - 2
Sources/VLCAppDelegate.m

@@ -136,7 +136,7 @@
             if (theError.code != noErr)
                 APLog(@"saving the file failed (%li): %@", (long)theError.code, theError.localizedDescription);
 
-            [self performSelectorInBackground:@selector(updateMediaList) withObject:nil];
+            [self updateMediaList];
         } else if ([url.scheme isEqualToString:@"vlc-x-callback"] || [url.host isEqualToString:@"x-callback-url"]) {
             // URL confirmes to the x-callback-url specification
             // vlc-x-callback://x-callback-url/action?param=value&x-success=callback
@@ -221,7 +221,7 @@
 - (void)applicationDidBecomeActive:(UIApplication *)application
 {
     [[MLMediaLibrary sharedMediaLibrary] updateMediaDatabase];
-    [self performSelectorInBackground:@selector(updateMediaList) withObject:nil];
+    [self updateMediaList];
 }
 
 - (void)applicationWillTerminate:(UIApplication *)application