|
@@ -607,8 +607,11 @@
|
|
|
[[OCNetworking sharedManager] downloadPreviewWithAccount:appDelegate.activeAccount metadata:metadata withWidth:width andHeight:height completion:^(NSString *account, UIImage *image, NSString *message, NSInteger errorCode) {
|
|
|
|
|
|
counterThumbnail--;
|
|
|
- if (errorCode == 0 && [account isEqualToString:appDelegate.activeAccount] && [[NSFileManager defaultManager] fileExistsAtPath:[CCUtility getDirectoryProviderStorageIconFileID:metadata.fileID fileNameView:metadata.fileNameView]] && [self indexPathIsValid:indexPath] && !collectionViewReloadDataInProgress) {
|
|
|
- [self.collectionView reloadItemsAtIndexPaths:@[indexPath]];
|
|
|
+
|
|
|
+ if (errorCode == 0 && [account isEqualToString:appDelegate.activeAccount]) {
|
|
|
+ UICollectionViewCell *cell = [self.collectionView cellForItemAtIndexPath:indexPath];
|
|
|
+ UIImageView *imageView = (UIImageView *)[cell viewWithTag:100];
|
|
|
+ imageView.image = image;
|
|
|
}
|
|
|
}];
|
|
|
}
|