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,
|
context,
|
||||||
0 /*request code*/,
|
0 /*request code*/,
|
||||||
sentIntent,
|
sentIntent,
|
||||||
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
|
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE);
|
||||||
|
|
||||||
// Send the message
|
// Send the message
|
||||||
MmsManager.sendMultimediaMessage(subId, context, contentUri, locationUrl,
|
MmsManager.sendMultimediaMessage(subId, context, contentUri, locationUrl,
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ public class SmsSender {
|
|||||||
partId,
|
partId,
|
||||||
getSendStatusIntent(context, SendStatusReceiver.MESSAGE_DELIVERED_ACTION,
|
getSendStatusIntent(context, SendStatusReceiver.MESSAGE_DELIVERED_ACTION,
|
||||||
messageUri, partId, subId),
|
messageUri, partId, subId),
|
||||||
PendingIntent.FLAG_IMMUTABLE));
|
PendingIntent.FLAG_MUTABLE));
|
||||||
} else {
|
} else {
|
||||||
deliveryIntents.add(null);
|
deliveryIntents.add(null);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user