Messaging: Make SMS delivered and MMS sent intents mutable

Fixes MMS send status and SMS delivery reports.

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/8074
Change-Id: I55b98619ed2d477dcc232ebdaa23b5390b7570b2
This commit is contained in:
LuK1337
2025-01-19 17:12:28 +01:00
parent c3f90af163
commit 28b9c1d2cd
2 changed files with 2 additions and 2 deletions

View File

@@ -158,7 +158,7 @@ public class MmsSender {
context,
0 /*request code*/,
sentIntent,
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE);
// Send the message
MmsManager.sendMultimediaMessage(subId, context, contentUri, locationUrl,

View File

@@ -269,7 +269,7 @@ public class SmsSender {
partId,
getSendStatusIntent(context, SendStatusReceiver.MESSAGE_DELIVERED_ACTION,
messageUri, partId, subId),
PendingIntent.FLAG_IMMUTABLE));
PendingIntent.FLAG_MUTABLE));
} else {
deliveryIntents.add(null);
}