Commit 28ac2fc4 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

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

(cherry picked from commit f63b7617)
parent 909566ab
......@@ -134,7 +134,7 @@
if (theError.code != noErr)
APLog(@"saving the file failed (%li): %@", (long)theError.code, theError.localizedDescription);
[self updateMediaList];
[self performSelectorInBackground:@selector(updateMediaList) withObject:nil];
} 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
......@@ -219,7 +219,7 @@
- (void)applicationDidBecomeActive:(UIApplication *)application
{
[[MLMediaLibrary sharedMediaLibrary] updateMediaDatabase];
[self updateMediaList];
[self performSelectorInBackground:@selector(updateMediaList) withObject:nil];
}
- (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