Skip to content

Commit

Permalink
Merge pull request #1970 from dhis2/ANDROAPP-5360
Browse files Browse the repository at this point in the history
Add PendingIntent.FLAG_IMMUTABLE to send SMS
  • Loading branch information
vgarciabnz authored Jun 7, 2023
2 parents c77730a + bb2fd14 commit cd3a613
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private void sendSmsToOS(SendingStateReceiver stateReceiver, String number, List
context,
uniqueIntentId,
new Intent(sendSmsAction).putExtra(SMS_KEY, smsKey),
PendingIntent.FLAG_ONE_SHOT);
PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_IMMUTABLE);
sentMessagePIs.add(sentPI);
uniqueIntentId++;
}
Expand Down

0 comments on commit cd3a613

Please sign in to comment.