浏览代码

fix downloadThumbnail

Marino Faggiana 6 年之前
父节点
当前提交
a0df33aaa3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      iOSClient/Main/NCMainCommon.swift

+ 1 - 1
iOSClient/Main/NCMainCommon.swift

@@ -1142,7 +1142,7 @@ class NCNetworkingMain: NSObject, CCNetworkingDelegate {
                     if view is UICollectionView && NCMainCommon.sharedInstance.isValidIndexPath(indexPath, view: view) {
                         (view as! UICollectionView).reloadItems(at: [indexPath])
                     }
-                    if view is UITableView && CCUtility.fileProviderStorageIconExists(metadata.fileID, fileNameView: metadata.fileName){
+                    if view is UITableView && CCUtility.fileProviderStorageIconExists(metadata.fileID, fileNameView: metadata.fileName) && NCMainCommon.sharedInstance.isValidIndexPath(indexPath, view: view) {
                         (view as! UITableView).reloadRows(at: [indexPath], with: UITableView.RowAnimation.none)
                     }
                 }