marinofaggiana 4 年之前
父節點
當前提交
90dbced499
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      iOSClient/Viewer/NCViewerProviderContextMenu.swift

+ 3 - 3
iOSClient/Viewer/NCViewerProviderContextMenu.swift

@@ -44,7 +44,8 @@ class NCViewerProviderContextMenu: UIViewController  {
                 
         if metadata.directory {
 
-            image = UIImage(named: "folder")!.image(color: NCBrandColor.shared.brandElement, size: UIScreen.main.bounds.width / 2)
+            imageView.image = UIImage(named: "folder")!.image(color: NCBrandColor.shared.brandElement, size: UIScreen.main.bounds.width / 2)
+            imageView.frame = CGRect(x: 0, y: 0, width: image?.size.width ?? 0, height: image?.size.height ?? 0)
 
         } else {
                             
@@ -65,7 +66,6 @@ class NCViewerProviderContextMenu: UIViewController  {
             imageView.image = image
             imageView.frame = CGRect(x: 0, y: 0, width: image?.size.width ?? 0, height: image?.size.height ?? 0)
 
-            
             // VIDEO
             if metadata.typeFile == NCBrandGlobal.shared.metadataTypeFileVideo && CCUtility.fileProviderStorageExists(metadata.ocId, fileNameView: metadata.fileNameView) {
 
@@ -92,7 +92,7 @@ class NCViewerProviderContextMenu: UIViewController  {
                     imageView.frame = videoLayer.frame
                     imageView.layer.addSublayer(videoLayer)
                             
-                    player.isMuted = false
+                    player.isMuted = CCUtility.getAudioMute()
                     player.play()
                 }
             }