Make PendingIntent flag immutable

Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
Tim Krüger 2022-06-23 15:16:54 +02:00
parent 0f8830df89
commit c13d23bda2
No known key found for this signature in database
GPG Key ID: FECE3A7222C52A4E

View File

@ -218,7 +218,7 @@ class ChatAndCallMessagingService : FirebaseMessagingService() {
0,
fullScreenIntent,
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_UPDATE_CURRENT
PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT
} else {
PendingIntent.FLAG_UPDATE_CURRENT
}