Fix "PendingIntents attached to actions with remote inputs must be mutable"

Room notifications are now working on Android 12 emulator
This commit is contained in:
Benoit Marty 2021-11-16 12:27:54 +01:00
parent 8d8565ca63
commit dddcbfbe7d
1 changed files with 2 additions and 1 deletions

View File

@ -818,7 +818,8 @@ class NotificationUtils @Inject constructor(private val context: Context,
context, context,
System.currentTimeMillis().toInt(), System.currentTimeMillis().toInt(),
intent, intent,
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntentCompat.FLAG_IMMUTABLE // PendingIntents attached to actions with remote inputs must be mutable
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntentCompat.FLAG_MUTABLE
) )
} else { } else {
/* /*