marinofaggiana 4 năm trước cách đây
mục cha
commit
68e7842fe8
1 tập tin đã thay đổi với 19 bổ sung19 xóa
  1. 19 19
      iOSClient/Viewer/NCViewerImage/NCViewerImage.swift

+ 19 - 19
iOSClient/Viewer/NCViewerImage/NCViewerImage.swift

@@ -696,26 +696,26 @@ extension NCViewerImage: UIGestureRecognizerDelegate {
                 }
             }
             
-        } else {
+            currentMode = .full
+        }
                     
-            if currentMode == .full {
-                
-                navigationController?.setNavigationBarHidden(false, animated: false)
-                view.backgroundColor = NCBrandColor.sharedInstance.backgroundView
-                textColor = NCBrandColor.sharedInstance.textView
-                progressView.isHidden = false
-                
-                currentMode = .normal
-                
-            } else {
-                
-                navigationController?.setNavigationBarHidden(true, animated: false)
-                view.backgroundColor = .black
-                textColor = .white
-                progressView.isHidden = true
-                
-                currentMode = .full
-            }
+        if currentMode == .full {
+            
+            navigationController?.setNavigationBarHidden(false, animated: false)
+            view.backgroundColor = NCBrandColor.sharedInstance.backgroundView
+            textColor = NCBrandColor.sharedInstance.textView
+            progressView.isHidden = false
+            
+            currentMode = .normal
+            
+        } else {
+            
+            navigationController?.setNavigationBarHidden(true, animated: false)
+            view.backgroundColor = .black
+            textColor = .white
+            progressView.isHidden = true
+            
+            currentMode = .full
         }
     }
 }