From 1c42bd262f8168e4618d4370afd13d0a6cdccb84 Mon Sep 17 00:00:00 2001 From: andrekir Date: Wed, 27 Nov 2024 19:27:51 -0300 Subject: [PATCH] fix: notification intents with immutable flags --- .../com/geeksville/mesh/service/MeshServiceNotifications.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/geeksville/mesh/service/MeshServiceNotifications.kt b/app/src/main/java/com/geeksville/mesh/service/MeshServiceNotifications.kt index 4a368af1d..713c83ecc 100644 --- a/app/src/main/java/com/geeksville/mesh/service/MeshServiceNotifications.kt +++ b/app/src/main/java/com/geeksville/mesh/service/MeshServiceNotifications.kt @@ -35,7 +35,6 @@ import com.geeksville.mesh.R import com.geeksville.mesh.TelemetryProtos.LocalStats import com.geeksville.mesh.android.notificationManager import com.geeksville.mesh.database.entity.NodeEntity -import com.geeksville.mesh.util.PendingIntentCompat import com.geeksville.mesh.util.formatUptime @Suppress("TooManyFunctions") @@ -194,7 +193,7 @@ class MeshServiceNotifications( context, 0, Intent(context, MainActivity::class.java), - PendingIntentCompat.FLAG_IMMUTABLE + PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_UPDATE_CURRENT ) } @@ -208,7 +207,7 @@ class MeshServiceNotifications( context, 0, intent, - PendingIntentCompat.FLAG_IMMUTABLE + PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_UPDATE_CURRENT ) return pendingIntent }