Prechádzať zdrojové kódy

test

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 rokov pred
rodič
commit
30dec6c638

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

@@ -103,7 +103,11 @@ class NCViewerMedia: UIViewController {
 
         loadImage(metadata: metadata) { ocId, image in
             self.image = image
-            self.imageVideoContainer.image = image
+            // do not update if is present the videoLayer
+            let numSublayers = self.imageVideoContainer.layer.sublayers?.count
+            if numSublayers == nil {
+                self.imageVideoContainer.image = image
+            }
         }
     }