Commit 1d5d9a4e authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

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

This reverts commit 28ac2fc4.

UICollectionView is not fully thread-safe so upgrading it indirectly in the background is a really bad idea
parent 768c6a6f
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment