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:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user