浏览代码

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