summaryrefslogtreecommitdiff
path: root/app/src/main/java/foundation/e/privacycentralapp
diff options
context:
space:
mode:
authorRomain Hunault <romain.hunault@e.email>2022-04-05 13:18:59 +0000
committerRomain Hunault <romain.hunault@e.email>2022-04-05 13:18:59 +0000
commit250da848583f1fbd2d6658339fc758d22c67e938 (patch)
tree192837a7afdd2e9f0e1606597f5be3b12218dc18 /app/src/main/java/foundation/e/privacycentralapp
parent881713a440bb4b5654e495c35095448f9ab38474 (diff)
parent9eb2eb9d6d0409e511b8dd7c106d0c92b98c4757 (diff)
Merge branch '5162_wodring_style' into 'main'
5162 wording style, 4907 fix toast widget not resizable, 5179 hide icon See merge request e/privacy-central/privacycentralapp!37
Diffstat (limited to 'app/src/main/java/foundation/e/privacycentralapp')
-rw-r--r--app/src/main/java/foundation/e/privacycentralapp/widget/WidgetUI.kt9
1 files changed, 4 insertions, 5 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 070d053..443683a 100644
--- a/app/src/main/java/foundation/e/privacycentralapp/widget/WidgetUI.kt
+++ b/app/src/main/java/foundation/e/privacycentralapp/widget/WidgetUI.kt
@@ -54,12 +54,11 @@ fun render(
) {
val views = RemoteViews(context.packageName, R.layout.widget)
views.apply {
- setOnClickPendingIntent(
- R.id.settings_btn,
- PendingIntent.getActivity(
- context, 0, Intent(context, MainActivity::class.java), FLAG_UPDATE_CURRENT
- )
+ val openPIntent = PendingIntent.getActivity(
+ context, 0, Intent(context, MainActivity::class.java), FLAG_UPDATE_CURRENT
)
+ setOnClickPendingIntent(R.id.settings_btn, openPIntent)
+ setOnClickPendingIntent(R.id.widget_container, openPIntent)
setImageViewResource(
R.id.state_icon,