marinofaggiana 4 年之前
父节点
当前提交
e76fc43101
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      iOSClient/Main/NCCollectionViewCommon.swift

+ 5 - 0
iOSClient/Main/NCCollectionViewCommon.swift

@@ -1179,6 +1179,11 @@ extension NCCollectionViewCommon: UICollectionViewDelegate {
             
         } else {
             
+            if metadata.typeFile == k_metadataTypeFile_video {
+                performSegue(withIdentifier: "segueDetail", sender: self)
+                return
+            }
+            
             if metadata.typeFile == k_metadataTypeFile_document && NCUtility.shared.isDirectEditing(account: metadata.account, contentType: metadata.contentType) != nil {
                 if NCCommunication.shared.isNetworkReachable() {
                     performSegue(withIdentifier: "segueDetail", sender: self)