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-16 19:39:07 +0300
committermarinofaggiana <marino@marinofaggiana.com>2020-10-16 19:39:07 +0300
commit54998078b24d8d6f86b4d71f4294ace5d575fd46 (patch)
tree840c047c459d0b656f3beab8a2b954f074911675 /iOSClient/Diagnostics
parentda8f9c872d8c12dded596ff4f4260f2027592b79 (diff)
coding
Diffstat (limited to 'iOSClient/Diagnostics')
-rw-r--r--iOSClient/Diagnostics/NCCapabilitiesViewController.swift7
1 files changed, 6 insertions, 1 deletions
diff --git a/iOSClient/Diagnostics/NCCapabilitiesViewController.swift b/iOSClient/Diagnostics/NCCapabilitiesViewController.swift
index c6f51882d..d9c65c728 100644
--- a/iOSClient/Diagnostics/NCCapabilitiesViewController.swift
+++ b/iOSClient/Diagnostics/NCCapabilitiesViewController.swift
@@ -195,7 +195,12 @@ class NCCapabilitiesViewController: UIViewController, UIDocumentInteractionContr
let fileURL = NSURL.fileURL(withPath: NSTemporaryDirectory(), isDirectory: true).appendingPathComponent("capabilities.txt")
do {
try self.capabilitiesText.write(to: fileURL, atomically: true, encoding: .utf8)
- NCNetworkingNotificationCenter.shared.openIn(fileURL: fileURL, selector: nil)
+
+ if let view = self.appDelegate.window?.rootViewController?.view {
+ self.documentController = UIDocumentInteractionController(url: fileURL)
+ self.documentController?.delegate = self
+ self.documentController?.presentOptionsMenu(from: view.frame, in: view, animated: true)
+ }
} catch { }
}
}