marinofaggiana 4 年之前
父节点
当前提交
a6b8f1d790

+ 10 - 0
iOSClient/Main/Collection/NCCollectionCommon.swift

@@ -250,6 +250,11 @@ class NCCollectionCommon: NSObject {
                 cell.setButtonMore(named: "more")
             }
             
+            // Live Photo
+            if metadata.livePhoto {
+                cell.imageStatus.image = NCCollectionCommonImages.cellLivePhotoImage
+            }
+            
             // Remove last separator
             if collectionView.numberOfItems(inSection: indexPath.section) == indexPath.row + 1 {
                 cell.separator.isHidden = true
@@ -354,6 +359,11 @@ class NCCollectionCommon: NSObject {
                 cell.progressView.progress = 0.0
                 cell.setButtonMore(named: "more")
             }
+            
+            // Live Photo
+            if metadata.livePhoto {
+                cell.imageStatus.image = NCCollectionCommonImages.cellLivePhotoImage
+            }
         }
     }
 }

+ 0 - 1
iOSClient/Main/Section/NCSectionHeaderFooter.swift

@@ -87,7 +87,6 @@ class NCSectionHeaderMenu: UICollectionReusableView, UIGestureRecognizerDelegate
             } else {
                 gradient.colors = [UIColor.init(white: 1, alpha: 0).cgColor, UIColor.white.cgColor]
             }
-            
         }
     }