Settings: Exporting configs as zip should open document picker

Because:
- Exporting UI should be consistent with importing UI
- UIActivityVC takes a long time to open

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2018-12-07 11:46:22 +05:30
parent c827a00307
commit fa9a4921a8
1 changed files with 3 additions and 5 deletions

View File

@ -80,11 +80,9 @@ class SettingsTableViewController: UITableViewController {
ErrorPresenter.showErrorAlert(error: error, from: self)
return
}
let activityVC = UIActivityViewController(activityItems: [destinationURL], applicationActivities: nil)
// popoverPresentationController shall be non-nil on the iPad
activityVC.popoverPresentationController?.sourceView = sourceView
activityVC.popoverPresentationController?.sourceRect = sourceView.bounds
self?.present(activityVC, animated: true)
let fileExportVC = UIDocumentPickerViewController(url: destinationURL, in: .exportToService)
self?.present(fileExportVC, animated: true, completion: nil)
}
}