Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ios.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarinofaggiana <marino@marinofaggiana.com>2020-10-02 11:39:51 +0300
committermarinofaggiana <marino@marinofaggiana.com>2020-10-02 11:39:51 +0300
commit2015876c566258f8e88d7e1826c6451187778826 (patch)
tree49bdb0b3ad76c7b398a0534f20b18f87667a7f32 /iOSClient
parent04442d6fe6aba05424e86f9c443633b62b1457e1 (diff)
coding
Diffstat (limited to 'iOSClient')
-rw-r--r--iOSClient/FileViewInFolder/NCFileViewInFolder.swift2
-rw-r--r--iOSClient/Main/NCCollectionViewCommon.swift6
-rw-r--r--iOSClient/Networking/NCNetworkingNotificationCenter.swift2
3 files changed, 4 insertions, 6 deletions
diff --git a/iOSClient/FileViewInFolder/NCFileViewInFolder.swift b/iOSClient/FileViewInFolder/NCFileViewInFolder.swift
index 441c62b98..d386e0860 100644
--- a/iOSClient/FileViewInFolder/NCFileViewInFolder.swift
+++ b/iOSClient/FileViewInFolder/NCFileViewInFolder.swift
@@ -47,6 +47,8 @@ class NCFileViewInFolder: NCCollectionViewCommon {
self.navigationItem.title = CCUtility.getLastPath(fromServerUrl: serverUrl, urlBase: appDelegate.urlBase)
}
+ appDelegate.activeViewController = self
+
(layout, _, _, groupBy, _, titleButton, itemForLine) = NCUtility.shared.getLayoutForView(key: layoutKey, serverUrl: serverUrl)
gridLayout.itemForLine = CGFloat(itemForLine)
diff --git a/iOSClient/Main/NCCollectionViewCommon.swift b/iOSClient/Main/NCCollectionViewCommon.swift
index 236ba5d45..2a48de8ff 100644
--- a/iOSClient/Main/NCCollectionViewCommon.swift
+++ b/iOSClient/Main/NCCollectionViewCommon.swift
@@ -1198,12 +1198,6 @@ extension NCCollectionViewCommon: UICollectionViewDelegate {
} else {
NCNetworking.shared.download(metadata: metadataTouch!, selector: selectorLoadFileView) { (_) in }
}
-
- if layoutKey == k_layout_view_viewInFolder {
- dismiss(animated: true) {
- self.appDelegate.activeFileViewInFolder = nil
- }
- }
}
}
diff --git a/iOSClient/Networking/NCNetworkingNotificationCenter.swift b/iOSClient/Networking/NCNetworkingNotificationCenter.swift
index 31eb3cdd5..2311c869f 100644
--- a/iOSClient/Networking/NCNetworkingNotificationCenter.swift
+++ b/iOSClient/Networking/NCNetworkingNotificationCenter.swift
@@ -183,6 +183,8 @@ import Foundation
(self.appDelegate.activeViewController as! NCOffline).segue(metadata: metadata)
} else if self.appDelegate.activeViewController is NCRecent {
(self.appDelegate.activeViewController as! NCRecent).segue(metadata: metadata)
+ } else if self.appDelegate.activeViewController is NCFileViewInFolder {
+ (self.appDelegate.activeViewController as! NCFileViewInFolder).segue(metadata: metadata)
}
}