marinofaggiana 4 жил өмнө
parent
commit
d4af9912d2

+ 0 - 1
iOSClient/Viewer/NCViewerImage/NCViewerImage.swift

@@ -695,7 +695,6 @@ extension NCViewerImage: NCViewerImageZoomDelegate {
     func didAppearImageZoom(viewerImageZoom: NCViewerImageZoom, metadata: tableMetadata) {
         
         videoStop()
-        currentViewerImageZoom?.detailView.updateExifLocal(metadata: metadata)
 
         if (currentMetadata.typeFile == k_metadataTypeFile_video || currentMetadata.typeFile == k_metadataTypeFile_audio) {
             videoPlay(metadata: metadata)

+ 4 - 0
iOSClient/Viewer/NCViewerImage/NCViewerImageDetailView.swift

@@ -44,6 +44,10 @@ class NCViewerImageDetailView: UIView {
                 if let location = NCManageDatabase.sharedInstance.getLocationFromGeoLatitude(latitudeString, longitude: longitudeString) {
                     self.location = location
                 }
+                
+                DispatchQueue.main.async {
+                    self.insertDataDetail()
+                }
             }
         }
     }

+ 3 - 2
iOSClient/Viewer/NCViewerImage/NCViewerImageZoom.swift

@@ -104,8 +104,10 @@ class NCViewerImageZoom: UIViewController {
         
         startY = imageView.frame.origin.y
         panDistanceClose = view.bounds.height / 3
-        panDistanceForDetailView = view.bounds.height / 5
+        panDistanceForDetailView = view.bounds.height / 4
         
+        detailView.updateExifLocal(metadata: metadata)
+
         delegate?.willAppearImageZoom(viewerImageZoom: self, metadata: metadata)
     }
     
@@ -189,7 +191,6 @@ class NCViewerImageZoom: UIViewController {
                 detailViewHeightConstraint.constant = (view.frame.width / 3) * 2
                 let offsetBottom = self.view.safeAreaInsets.bottom + 20
                 detailViewBottomConstraint.constant = imageViewBottomConstraint.constant - offsetBottom
-                detailView.insertDataDetail()
                 openDetailView = true
             }