Skip to content

Widget broken: Couldn't add widget#352

Merged
d4rken merged 2 commits intomainfrom
widget-issue
Nov 11, 2025
Merged

Widget broken: Couldn't add widget#352
d4rken merged 2 commits intomainfrom
widget-issue

Conversation

@d4rken
Copy link
Member

@d4rken d4rken commented Nov 9, 2025

Ideas for fixing #349

Uses the application context instead of the activity context when updating the widget. This avoids leaking the activity instance if the update operation outlives the configuration screen.
Use the widget ID as the request code for `PendingIntent`. This ensures that each widget instance has a distinct `PendingIntent`, preventing them from overwriting each other and allowing clicks on multiple widgets to work correctly.
@d4rken d4rken added the bug Something isn't working label Nov 9, 2025
@d4rken d4rken marked this pull request as ready for review November 11, 2025 07:37
@d4rken d4rken merged commit 10d5a82 into main Nov 11, 2025
13 checks passed
@d4rken d4rken deleted the widget-issue branch November 11, 2025 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant