From 997f8325a8257d8b3fd07974671bf6b789a8e49b Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 12 Apr 2022 14:36:58 +0200 Subject: [PATCH] lets actually make the intents mutable --- .../dialer/helpers/CallNotificationManager.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/dialer/helpers/CallNotificationManager.kt b/app/src/main/kotlin/com/simplemobiletools/dialer/helpers/CallNotificationManager.kt index 9c70476c..6b30ef6f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/dialer/helpers/CallNotificationManager.kt +++ b/app/src/main/kotlin/com/simplemobiletools/dialer/helpers/CallNotificationManager.kt @@ -42,17 +42,17 @@ class CallNotificationManager(private val context: Context) { } val openAppIntent = CallActivity.getStartIntent(context) - val openAppPendingIntent = PendingIntent.getActivity(context, 0, openAppIntent, PendingIntent.FLAG_IMMUTABLE) + val openAppPendingIntent = PendingIntent.getActivity(context, 0, openAppIntent, PendingIntent.FLAG_MUTABLE) val acceptCallIntent = Intent(context, CallActionReceiver::class.java) acceptCallIntent.action = ACCEPT_CALL val acceptPendingIntent = - PendingIntent.getBroadcast(context, ACCEPT_CALL_CODE, acceptCallIntent, PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_IMMUTABLE) + PendingIntent.getBroadcast(context, ACCEPT_CALL_CODE, acceptCallIntent, PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_MUTABLE) val declineCallIntent = Intent(context, CallActionReceiver::class.java) declineCallIntent.action = DECLINE_CALL val declinePendingIntent = - PendingIntent.getBroadcast(context, DECLINE_CALL_CODE, declineCallIntent, PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_IMMUTABLE) + PendingIntent.getBroadcast(context, DECLINE_CALL_CODE, declineCallIntent, PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_MUTABLE) var callerName = if (callContact != null && callContact.name.isNotEmpty()) callContact.name else context.getString(R.string.unknown_caller) if (callContact?.numberLabel?.isNotEmpty() == true) {