Commit 11c4f891 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Library: fix minor appearance issues

parent 30b12eb8
......@@ -102,7 +102,8 @@
- (void)viewDidAppear:(BOOL)animated
{
[self performSelector:@selector(reloadContents) withObject:nil afterDelay:.0];
if (_foundMedia.count < 1)
[self performSelector:@selector(reloadContents) withObject:nil afterDelay:.0];
[[MLMediaLibrary sharedMediaLibrary] performSelector:@selector(libraryDidAppear) withObject:nil afterDelay:1.];
[super viewDidAppear:animated];
......@@ -257,6 +258,8 @@
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
NSManagedObject *currentObject = _foundMedia[indexPath.row];
if ([currentObject isKindOfClass:[MLAlbum class]]) {
_foundMedia = [NSMutableArray arrayWithArray:[[(MLAlbum *)currentObject tracks] allObjects]];
......
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