Commit 6c3e5731 authored by Tobias's avatar Tobias Committed by Felix Paul Kühne
Browse files

migrations are done before playlist view becomes visible so we don't need to do migrations here

parent bf826e99
......@@ -248,21 +248,6 @@ static NSString *kDisplayedFirstSteps = @"Did we display the first steps tutoria
[defaults synchronize];
if ([[MLMediaLibrary sharedMediaLibrary] libraryNeedsUpgrade]) {
self.navigationItem.rightBarButtonItem = nil;
self.navigationItem.leftBarButtonItem = nil;
self.title = @"";
self.emptyLibraryView.emptyLibraryLabel.text = NSLocalizedString(@"UPGRADING_LIBRARY", nil);
self.emptyLibraryView.emptyLibraryLongDescriptionLabel.hidden = YES;
[self.emptyLibraryView.activityIndicator startAnimating];
self.emptyLibraryView.frame = self.view.bounds;
[self.view addSubview:self.emptyLibraryView];
[[MLMediaLibrary sharedMediaLibrary] setDelegate: self];
[[MLMediaLibrary sharedMediaLibrary] performSelectorInBackground:@selector(upgradeLibrary) withObject:nil];
if (_foundMedia.count < 1)
[self updateViewContents];
[[MLMediaLibrary sharedMediaLibrary] performSelector:@selector(libraryDidAppear) withObject:nil afterDelay:1.];
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