From 0cb11ff0e4e32cfe6f9ca79d3a3d2373c9857125 Mon Sep 17 00:00:00 2001 From: Laurent Date: Wed, 8 Feb 2023 10:52:30 +0100 Subject: [PATCH] Adds flag to avoid crash --- .../ui/modules/handhistory/replayer/ReplayExportService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/replayer/ReplayExportService.kt b/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/replayer/ReplayExportService.kt index b93957a6..64ba4757 100644 --- a/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/replayer/ReplayExportService.kt +++ b/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/replayer/ReplayExportService.kt @@ -454,7 +454,7 @@ class ReplayExportService : Service() { intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION) val chooser = Intent.createChooser(intent, getString(R.string.open_file_with)) - val pendingIntent = PendingIntent.getActivity(this, 0, chooser, PendingIntent.FLAG_CANCEL_CURRENT) + val pendingIntent = PendingIntent.getActivity(this, 0, chooser, PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_IMMUTABLE) TriggerNotification(this, title, body, pendingIntent)