marinofaggiana před 3 roky
rodič
revize
25b9d387e1

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

@@ -33,7 +33,8 @@ class NCViewerMedia: UIViewController {
         case full, normal
     }
     var currentMode: ScreenMode = .normal
-        
+    var lastModeImage: ScreenMode = .normal
+
     var pageViewController: UIPageViewController {
         return self.children[0] as! UIPageViewController
     }
@@ -160,8 +161,6 @@ class NCViewerMedia: UIViewController {
             view.backgroundColor = NCBrandColor.shared.systemBackground
             textColor = NCBrandColor.shared.label
             
-            currentMode = .normal
-            
         } else {
             
             navigationController?.setNavigationBarHidden(true, animated: true)
@@ -172,10 +171,10 @@ class NCViewerMedia: UIViewController {
             NCUtility.shared.colorNavigationController(navigationController, backgroundColor: .black, titleColor: .white, tintColor: nil)
             view.backgroundColor = .black
             textColor = .white
-                        
-            currentMode = .full
         }
         
+        currentMode = mode
+        
         // Detail Text Color
         currentViewController.detailView.textColor(textColor)
     }

+ 1 - 0
iOSClient/Viewer/NCViewerMedia/NCViewerMediaZoom.swift

@@ -110,6 +110,7 @@ class NCViewerMediaZoom: UIViewController {
 
         viewerMedia?.navigationController?.navigationBar.prefersLargeTitles = false
         viewerMedia?.navigationItem.title = metadata.fileNameView
+        
                 
         if viewerMedia?.currentMode == .full {