add the PendingIntent.FLAG_IMMUTABLE flag to PendingIntents
This commit is contained in:
parent
15d6b7f17a
commit
bf2f4887ca
2 changed files with 10 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue