Bladeren bron

Improved view image

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 jaren geleden
bovenliggende
commit
68b454121d
1 gewijzigde bestanden met toevoegingen van 4 en 5 verwijderingen
  1. 4 5
      iOSClient/Viewer/NCViewerMedia/NCViewerMedia.swift

+ 4 - 5
iOSClient/Viewer/NCViewerMedia/NCViewerMedia.swift

@@ -370,7 +370,7 @@ extension NCViewerMedia {
             etagResource = metadata.etagResource
         }
         
-        NCUtility.shared.startActivityIndicator(backgroundView: nil, blurEffect: true)
+//        NCUtility.shared.startActivityIndicator(backgroundView: nil, blurEffect: true)
             
         NCCommunication.shared.downloadPreview(fileNamePathOrFileId: fileNamePath, fileNamePreviewLocalPath: fileNamePreviewLocalPath , widthPreview: NCGlobal.shared.sizePreview, heightPreview: NCGlobal.shared.sizePreview, fileNameIconLocalPath: fileNameIconLocalPath, sizeIcon: NCGlobal.shared.sizeIcon, etag: etagResource, queue: NCCommunicationCommon.shared.backgroundQueue) { (account, imagePreview, imageIcon, imageOriginal, etag, errorCode, errorDescription) in
             
@@ -378,9 +378,8 @@ extension NCViewerMedia {
                 DispatchQueue.main.async {
                     self.image = image
                     self.imageVideoContainer.image = image
-                    
-                    NCUtility.shared.stopActivityIndicator()
                     self.downloadFile()
+//                    NCUtility.shared.stopActivityIndicator()
                 }
             }
         }
@@ -395,7 +394,7 @@ extension NCViewerMedia {
         
         if CCUtility.getAutomaticDownloadImage() || (metadata.contentType == "image/heic" &&  metadata.hasPreview == false) || ext == "GIF" || ext == "SVG" || isFolderEncrypted {
             
-            NCUtility.shared.startActivityIndicator(backgroundView: nil, blurEffect: true)
+//            NCUtility.shared.startActivityIndicator(backgroundView: nil, blurEffect: true)
             
             NCNetworking.shared.download(metadata: metadata, selector: "") { (errorCode) in
                 
@@ -403,7 +402,7 @@ extension NCViewerMedia {
                     DispatchQueue.main.async {
                         self.image = image
                         self.imageVideoContainer.image = image
-                        NCUtility.shared.stopActivityIndicator()
+//                        NCUtility.shared.stopActivityIndicator()
                     }
                 }
             }