Browse Source

test

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 năm trước cách đây
mục cha
commit
30dec6c638
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      iOSClient/Viewer/NCViewerMedia/NCViewerMedia.swift

+ 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
+            }
         }
     }