summaryrefslogtreecommitdiff
path: root/app/src/main/java/foundation
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/foundation')
-rw-r--r--app/src/main/java/foundation/e/privacycentralapp/widget/WidgetUI.kt9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/src/main/java/foundation/e/privacycentralapp/widget/WidgetUI.kt b/app/src/main/java/foundation/e/privacycentralapp/widget/WidgetUI.kt
index 7b8ceb4..fc865c6 100644
--- a/app/src/main/java/foundation/e/privacycentralapp/widget/WidgetUI.kt
+++ b/app/src/main/java/foundation/e/privacycentralapp/widget/WidgetUI.kt
@@ -18,6 +18,7 @@
package foundation.e.privacycentralapp.widget
import android.app.PendingIntent
+import android.app.PendingIntent.FLAG_IMMUTABLE
import android.app.PendingIntent.FLAG_UPDATE_CURRENT
import android.appwidget.AppWidgetManager
import android.content.ComponentName
@@ -55,7 +56,7 @@ fun render(
context,
REQUEST_CODE_DASHBOARD,
Intent(context, MainActivity::class.java),
- FLAG_UPDATE_CURRENT
+ FLAG_IMMUTABLE or FLAG_UPDATE_CURRENT
)
setOnClickPendingIntent(R.id.settings_btn, openPIntent)
setOnClickPendingIntent(R.id.widget_container, openPIntent)
@@ -84,7 +85,7 @@ fun render(
Intent(context, WidgetCommandReceiver::class.java).apply {
action = ACTION_TOGGLE_PRIVACY
},
- FLAG_UPDATE_CURRENT
+ FLAG_IMMUTABLE or FLAG_UPDATE_CURRENT
)
)
@@ -135,7 +136,7 @@ fun render(
context,
REQUEST_CODE_TRACKERS,
MainActivity.createTrackersIntent(context),
- FLAG_UPDATE_CURRENT
+ FLAG_IMMUTABLE or FLAG_UPDATE_CURRENT
)
setOnClickPendingIntent(R.id.graph_view_trackers_btn, pIntent)
@@ -161,7 +162,7 @@ fun render(
val highlightPIntent = PendingIntent.getActivity(
context, REQUEST_CODE_HIGHLIGHT + index,
MainActivity.createHighlightLeaksIntent(context, index),
- FLAG_UPDATE_CURRENT
+ FLAG_IMMUTABLE or FLAG_UPDATE_CURRENT
)
setOnClickPendingIntent(containerBarIds[index], highlightPIntent)
}