add the PendingIntent.FLAG_IMMUTABLE flag to PendingIntents

This commit is contained in:
tibbi 2022-04-12 14:35:02 +02:00
parent 15d6b7f17a
commit bf2f4887ca
2 changed files with 10 additions and 7 deletions

View file

@ -87,7 +87,7 @@ class SmsStatusSentReceiver : SentReceiver() {
putExtra(THREAD_ID, threadId)
}
val pendingIntent = PendingIntent.getActivity(context, threadId.hashCode(), intent, PendingIntent.FLAG_UPDATE_CURRENT)
val pendingIntent = PendingIntent.getActivity(context, threadId.hashCode(), intent, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE)
val summaryText = String.format(context.getString(R.string.message_sending_error), recipientName)
val largeIcon = SimpleContactsHelper(context).getContactLetterIcon(recipientName)