summaryrefslogtreecommitdiff
path: root/app/src/main/java/foundation/e
diff options
context:
space:
mode:
authorAbhishek Aggarwal <warabhishek@e.email>2022-09-19 05:56:53 +0000
committerAbhishek Aggarwal <warabhishek@e.email>2022-09-19 05:56:53 +0000
commit0d5a3eddc0bc9247ca1e7f41b11d66a2e72cc5ef (patch)
treed62accffc0973edd59f6073d597fadd1eef43beb /app/src/main/java/foundation/e
parent8ae0914b4719c99b54e41f4138c1785aebfc30e0 (diff)
parent015fbcfedbd258025c964c0a8019fb6b57180f42 (diff)
Merge branch '511-sdk32-s_support' into 'main'
pvc: add FLAG_IMMUTABLE needed in s See merge request e/os/advanced-privacy!89
Diffstat (limited to 'app/src/main/java/foundation/e')
-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)
}