From 015fbcfedbd258025c964c0a8019fb6b57180f42 Mon Sep 17 00:00:00 2001 From: TheScarastic Date: Fri, 16 Sep 2022 17:20:01 +0530 Subject: pvc: add FLAG_IMMUTABLE needed in s --- .../main/java/foundation/e/privacycentralapp/widget/WidgetUI.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'app/src/main/java/foundation/e/privacycentralapp') 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) } -- cgit v1.2.1