浏览代码

Update NCViewerMedia.swift

Marino Faggiana 1 年之前
父节点
当前提交
c82e3af5ca
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      iOSClient/Viewer/NCViewerMedia/NCViewerMedia.swift

+ 7 - 0
iOSClient/Viewer/NCViewerMedia/NCViewerMedia.swift

@@ -187,6 +187,10 @@ class NCViewerMedia: UIViewController {
         super.viewWillTransition(to: size, with: coordinator)
 
         self.tipView?.dismiss()
+        if metadata.isVideo {
+            self.imageVideoContainer.isHidden = true
+        }
+
         coordinator.animate(alongsideTransition: { context in
             // back to the original size
             self.scrollView.zoom(to: CGRect(x: 0, y: 0, width: self.scrollView.bounds.width, height: self.scrollView.bounds.height), animated: false)
@@ -198,6 +202,9 @@ class NCViewerMedia: UIViewController {
             }
         }, completion: { context in
             self.showTip()
+            if self.metadata.isVideo {
+                self.imageVideoContainer.isHidden = false
+            }
         })
     }