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
This commit is contained in:
Roopesh Chander 2018-12-07 11:46:22 +05:30
parent 24de510ea6
commit c3a3effd82
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)
}
}