marinofaggiana 3 years ago
parent
commit
252d8a5504

+ 2 - 2
iOSClient/Viewer/NCViewerMedia/NCViewerMedia.swift

@@ -151,7 +151,7 @@ class NCViewerMedia: UIViewController {
         
         if mode == .normal {
             
-            navigationController?.setNavigationBarHidden(false, animated: false)
+            navigationController?.setNavigationBarHidden(false, animated: true)
             progressView.isHidden = false
 
             // show playerToolBar
@@ -174,7 +174,7 @@ class NCViewerMedia: UIViewController {
             
         } else {
             
-            navigationController?.setNavigationBarHidden(true, animated: false)
+            navigationController?.setNavigationBarHidden(true, animated: true)
             progressView.isHidden = true
             
             currentViewController.playerToolBar.hideToolBar()

+ 3 - 5
iOSClient/Viewer/NCViewerMedia/NCViewerMediaZoom.swift

@@ -113,7 +113,7 @@ class NCViewerMediaZoom: UIViewController {
                 
         if viewerMedia?.currentMode == .full {
             
-            viewerMedia?.navigationController?.setNavigationBarHidden(true, animated: false)
+            viewerMedia?.navigationController?.setNavigationBarHidden(true, animated: true)
             
             NCUtility.shared.colorNavigationController(viewerMedia?.navigationController, backgroundColor: .black, titleColor: .white, tintColor: nil)
             
@@ -123,7 +123,7 @@ class NCViewerMediaZoom: UIViewController {
             
         } else {
             
-            viewerMedia?.navigationController?.setNavigationBarHidden(false, animated: false)
+            viewerMedia?.navigationController?.setNavigationBarHidden(false, animated: true)
             
             if (!metadata.livePhoto && metadata.classFile == NCCommunicationCommon.typeClassFile.video.rawValue) {
                 
@@ -316,9 +316,7 @@ extension NCViewerMediaZoom {
         } completion: { (_) in
         }
         
-        scrollView.pinchGestureRecognizer?.isEnabled = true
-        
-        playerToolBar.showToolBar(metadata: metadata, detailView: nil)
+        scrollView.pinchGestureRecognizer?.isEnabled = true        
     }
     
     func downloadFile() {