Pārlūkot izejas kodu

VLCBoxTableViewController: Call super mediaListUpdated to refresh UI

Soomin Lee 5 gadi atpakaļ
vecāks
revīzija
116d4d45a9
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 5 1
      Sources/VLCBoxTableViewController.m

+ 5 - 1
Sources/VLCBoxTableViewController.m

@@ -135,7 +135,11 @@
 - (void)mediaListUpdated
 {
     _listOfFiles = [[VLCBoxController sharedInstance].currentListFiles copy];
-    [self.tableView performSelectorOnMainThread:@selector(reloadData) withObject:nil waitUntilDone:NO];
+
+    dispatch_async(dispatch_get_main_queue(), ^{
+        [self.tableView reloadData];
+        [super mediaListUpdated];
+    });
 }
 
 - (VLCCloudStorageTableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath