Commit a45b1e64 authored by Felix Paul Kühne's avatar Felix Paul Kühne

playlist view: performance optimizations on launch by cheating a bit (should close #8578)

parent a51913b0
......@@ -39,9 +39,6 @@
self.navigationItem.rightBarButtonItem = self.editButtonItem;
[self updateViewContents];
[[MLMediaLibrary sharedMediaLibrary] libraryDidAppear];
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
_gridView.separatorStyle = AQGridViewCellSeparatorStyleEmptySpace;
_gridView.alwaysBounceVertical = YES;
......@@ -50,6 +47,19 @@
self.tabBar.selectedItem = self.localFilesBarItem;
}
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
[self performSelector:@selector(updateViewContents) withObject:nil afterDelay:.3];
[[MLMediaLibrary sharedMediaLibrary] performSelector:@selector(libraryDidAppear) withObject:nil afterDelay:1.];
}
- (void)viewDidDisappear:(BOOL)animated
{
[super viewDidDisappear:animated];
[[MLMediaLibrary sharedMediaLibrary] libraryDidDisappear];
}
#pragma mark - Table View
- (void)updateViewContents
......
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