From cccde29e6c591c62d663b8f16e2e847a0117d809 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Thu, 27 Oct 2022 23:11:21 -0400 Subject: [PATCH] Fix crash when long-pressing Send Report button on iPad Closes #190 --- Tusker/Screens/Crash Reporter/IssueReporterViewController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Tusker/Screens/Crash Reporter/IssueReporterViewController.swift b/Tusker/Screens/Crash Reporter/IssueReporterViewController.swift index 8afa5727..15c52e3e 100644 --- a/Tusker/Screens/Crash Reporter/IssueReporterViewController.swift +++ b/Tusker/Screens/Crash Reporter/IssueReporterViewController.swift @@ -142,6 +142,7 @@ class IssueReporterViewController: UIViewController { let url = dir.appendingPathComponent(reportFilename) try! reportText.data(using: .utf8)!.write(to: url) let activityController = UIActivityViewController(activityItems: [url], applicationActivities: nil) + activityController.popoverPresentationController?.sourceView = sendReportButton present(activityController, animated: true) }