Переглянути джерело

VLCGoogleDriveController: Remove files duplications upon pull to refresh

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Soomin Lee 8 роки тому
батько
коміт
18166a3bcb
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      Sources/VLCGoogleDriveController.m

+ 1 - 1
Sources/VLCGoogleDriveController.m

@@ -265,7 +265,7 @@
         if (isDirectory || supportedFile)
             [listOfGoodFilesAndFolders addObject:iter];
     }
-    _currentFileList = [_currentFileList count] ? [_currentFileList arrayByAddingObjectsFromArray:listOfGoodFilesAndFolders] : [NSArray arrayWithArray:listOfGoodFilesAndFolders];
+    _currentFileList = [NSArray arrayWithArray:listOfGoodFilesAndFolders];
 
     if ([_currentFileList count] <= 10 && [self hasMoreFiles]) {
         [self listFilesWithID:_folderId];