diff options
author | TheScarastic <warabhishek@e.email> | 2022-09-16 17:20:01 +0530 |
---|---|---|
committer | TheScarastic <warabhishek@e.email> | 2022-09-16 17:20:38 +0530 |
commit | 015fbcfedbd258025c964c0a8019fb6b57180f42 (patch) | |
tree | d62accffc0973edd59f6073d597fadd1eef43beb /app | |
parent | 8ae0914b4719c99b54e41f4138c1785aebfc30e0 (diff) |
pvc: add FLAG_IMMUTABLE needed in s
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/foundation/e/privacycentralapp/widget/WidgetUI.kt | 9 |
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) } |