Browse Source

ipad library view: fix redrawing issue

Felix Paul Kühne 12 years ago
parent
commit
441a760a67
1 changed files with 6 additions and 3 deletions
  1. 6 3
      AspenProject/VLCPlaylistViewController.m

+ 6 - 3
AspenProject/VLCPlaylistViewController.m

@@ -127,8 +127,6 @@
     }
 }
 
-#pragma mark - Table View
-
 - (void)updateViewContents
 {
     [[MLMediaLibrary sharedMediaLibrary] updateMediaDatabase];
@@ -137,12 +135,17 @@
 
     if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone)
         [self.tableView reloadData];
-    else
+    else {
         [self.gridView reloadData];
+        [self.gridView setNeedsDisplay];
+    }
 
     [self _displayEmptyLibraryViewIfNeeded];
 }
 
+
+#pragma mark - Table View
+
 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
 {
     return 1;