Explorar o código

Library: fix minor appearance issues

Felix Paul Kühne %!s(int64=12) %!d(string=hai) anos
pai
achega
11c4f891e2
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      AspenProject/VLCPlaylistViewController.m

+ 4 - 1
AspenProject/VLCPlaylistViewController.m

@@ -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]];