Marino Faggiana 6 жил өмнө
parent
commit
73fbfd83d2

+ 0 - 1
iOSClient/Favorites/CCFavorites.m

@@ -551,7 +551,6 @@
     
     // variable base
     cell.delegate = self;
-    cell.indexPath = indexPath;
     
     // separator
     cell.separatorInset = UIEdgeInsetsMake(0.f, 60.f, 0.f, 0.f);

+ 0 - 6
iOSClient/Main/CCCellMain.h

@@ -38,10 +38,4 @@
 
 @property(nonatomic, strong) UIImage *imageTitleSegue;
 
-//Last position of the scroll of the swipe
-@property (nonatomic, assign) CGFloat lastContentOffset;
-
-//Index path of the cell swipe gesture ocured
-@property (nonatomic, strong) NSIndexPath *indexPath;
-
 @end

+ 0 - 13
iOSClient/Main/CCCellMain.m

@@ -43,17 +43,4 @@
     self.contentView.preservesSuperviewLayoutMargins = NO;
 }
 
-///-----------------------------------
-/// @name scrollViewWillBeginDecelerating
-///-----------------------------------
-
-/**
- * Method to initialize the position where we make the swipe in order to detect the direction
- *
- * @param UIScrollView -> scrollView
- */
-- (void)scrollViewWillBeginDecelerating:(UIScrollView *)scrollView {
-    _lastContentOffset = scrollView.contentOffset.x;
-}
-
 @end

+ 4 - 1
iOSClient/Main/CCMain.m

@@ -4429,7 +4429,6 @@
         cell.tintColor = [NCBrandColor sharedInstance].brandElement;
                 
         cell.delegate = self;
-        cell.indexPath = indexPath;
         
         cell.labelTitle.textColor = [UIColor blackColor];
         cell.labelTitle.text = metadata.fileNameView;
@@ -4685,6 +4684,10 @@
             }
         }
         
+        // Progress
+        float progress = [[appDelegate.listProgressMetadata objectForKey:metadata.fileID] floatValue];
+        cell.transferButton.progress = progress;
+        
         // gesture Transfer
         [cell.transferButton.stopButton addTarget:self action:@selector(cancelTaskButton:withEvent:) forControlEvents:UIControlEventTouchUpInside];