summaryrefslogtreecommitdiff
path: root/app/src/main/java/foundation
diff options
context:
space:
mode:
authorjacquarg <guillaume.jacquart@hoodbrains.com>2022-03-29 09:50:12 +0200
committerjacquarg <guillaume.jacquart@hoodbrains.com>2022-04-05 08:36:28 +0200
commit9e9ddcb5feafb7b153d178722548a7354b899b20 (patch)
tree417b0c41193d22d7c9dc515cd1827bf0338d6e14 /app/src/main/java/foundation
parent4b376b721f1a8eea4e26356942b187e0862beed1 (diff)
4907 Fix toast widget not resizable
Diffstat (limited to 'app/src/main/java/foundation')
-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,