From dddcbfbe7d61b29967ee8c8468baea2d27bb49ee Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 16 Nov 2021 12:27:54 +0100 Subject: [PATCH] Fix "PendingIntents attached to actions with remote inputs must be mutable" Room notifications are now working on Android 12 emulator --- .../im/vector/app/features/notifications/NotificationUtils.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/notifications/NotificationUtils.kt b/vector/src/main/java/im/vector/app/features/notifications/NotificationUtils.kt index 650035609d..1479e577e7 100755 --- a/vector/src/main/java/im/vector/app/features/notifications/NotificationUtils.kt +++ b/vector/src/main/java/im/vector/app/features/notifications/NotificationUtils.kt @@ -818,7 +818,8 @@ class NotificationUtils @Inject constructor(private val context: Context, context, System.currentTimeMillis().toInt(), 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 { /*