Fix crash when long-pressing Send Report button on iPad

Closes #190
This commit is contained in:
Shadowfacts 2022-10-27 23:11:21 -04:00
parent aa0629d202
commit cccde29e6c
1 changed files with 1 additions and 0 deletions

View File

@ -142,6 +142,7 @@ class IssueReporterViewController: UIViewController {
let url = dir.appendingPathComponent(reportFilename) let url = dir.appendingPathComponent(reportFilename)
try! reportText.data(using: .utf8)!.write(to: url) try! reportText.data(using: .utf8)!.write(to: url)
let activityController = UIActivityViewController(activityItems: [url], applicationActivities: nil) let activityController = UIActivityViewController(activityItems: [url], applicationActivities: nil)
activityController.popoverPresentationController?.sourceView = sendReportButton
present(activityController, animated: true) present(activityController, animated: true)
} }