Browse Source

remove caption on Video

Marino Faggiana 8 years ago
parent
commit
381c67849b
1 changed files with 1 additions and 7 deletions
  1. 1 7
      iOSClient/Main/CCDetail.m

+ 1 - 7
iOSClient/Main/CCDetail.m

@@ -451,7 +451,7 @@
 {
     CCMetadata *metadata = [self.dataSourceImagesVideos objectAtIndex:index];
     
-    NSString *titleDir = metadata.fileNamePrint; //[NSString stringWithFormat:@"%lu %@ %lu", (unsigned long)index+1, NSLocalizedString(@"of", nil), (unsigned long)self.photos.count];
+    NSString *titleDir = metadata.fileNamePrint;
     self.title = titleDir;
     
     return titleDir;
@@ -521,11 +521,6 @@
                     // Location ??
                     [self setLocationCaptionPhoto:photo fileID:metadata.fileID];
                     
-                    if (!photo.caption) {
-                        // Remove title foto caption
-                        //photo.caption = metadata.fileNamePrint;
-                    }
-                    
                     [self.photos replaceObjectAtIndex:index withObject:photo];
                     
                 } else {
@@ -554,7 +549,6 @@
                     NSURL *url = [NSURL fileURLWithPath:toPath];
                     
                     MWPhoto *video = [MWPhoto photoWithImage:[CCGraphics thumbnailImageForVideo:url atTime:1.0]];
-                    video.caption = metadata.fileNamePrint;
                     video.videoURL = url;
                     
                     [self.photos replaceObjectAtIndex:index withObject:video];