From 7f6116f9d86a5694d568cb5d90ceb79b7f7ef6d2 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 9 Mar 2023 13:29:33 +0100 Subject: [PATCH] Android 14: explicit mutable intents --- app/src/main/java/eu/faircode/email/Core.java | 1 + app/src/main/java/eu/faircode/email/WidgetUnified.java | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 8d0f234a5d..1097ab362e 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -5866,6 +5866,7 @@ class Core { message.from != null && message.from.length > 0 && db.folder().getOutbox() != null) { Intent reply = new Intent(context, ServiceUI.class) + .setPackage(BuildConfig.APPLICATION_ID) .setAction("reply:" + message.id) .putExtra("group", group); PendingIntent piReply = PendingIntentCompat.getService( diff --git a/app/src/main/java/eu/faircode/email/WidgetUnified.java b/app/src/main/java/eu/faircode/email/WidgetUnified.java index 7781d79d8b..1952c3d946 100644 --- a/app/src/main/java/eu/faircode/email/WidgetUnified.java +++ b/app/src/main/java/eu/faircode/email/WidgetUnified.java @@ -121,6 +121,7 @@ public class WidgetUnified extends AppWidgetProvider { views.setRemoteAdapter(R.id.lv, service); Intent thread = new Intent(context, ActivityView.class); + thread.setPackage(BuildConfig.APPLICATION_ID); thread.setAction("widget:" + appWidgetId); thread.putExtra("widget_account", account); thread.putExtra("widget_folder", folder);