diff --git a/app/src/main/java/org/mozilla/reference/browser/NotificationManager.kt b/app/src/main/java/org/mozilla/reference/browser/NotificationManager.kt index d46edc91a..ac07e9243 100644 --- a/app/src/main/java/org/mozilla/reference/browser/NotificationManager.kt +++ b/app/src/main/java/org/mozilla/reference/browser/NotificationManager.kt @@ -59,7 +59,7 @@ object NotificationManager { flags = Intent.FLAG_ACTIVITY_NEW_TASK } val flags = if (SDK_INT >= Build.VERSION_CODES.S) { - PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_ONE_SHOT + PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_ONE_SHOT } else { PendingIntent.FLAG_ONE_SHOT } @@ -130,7 +130,7 @@ object NotificationManager { } val flags = if (SDK_INT >= Build.VERSION_CODES.S) { - PendingIntent.FLAG_MUTABLE + PendingIntent.FLAG_IMMUTABLE } else { 0 } diff --git a/app/src/main/java/org/mozilla/reference/browser/components/Analytics.kt b/app/src/main/java/org/mozilla/reference/browser/components/Analytics.kt index e271ab722..5aac22843 100644 --- a/app/src/main/java/org/mozilla/reference/browser/components/Analytics.kt +++ b/app/src/main/java/org/mozilla/reference/browser/components/Analytics.kt @@ -5,7 +5,6 @@ package org.mozilla.reference.browser.components import android.app.PendingIntent -import android.app.PendingIntent.FLAG_MUTABLE import android.content.Context import android.content.Intent import android.os.Build @@ -54,7 +53,7 @@ class Analytics(private val context: Context) { } val flags = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { - FLAG_MUTABLE + PendingIntent.FLAG_IMMUTABLE } else { 0 }