Skip to content

Fix widget auto-update and boot receiver reliability#296

Merged
EmmaTellblom merged 2 commits into
EmmaTellblom:widget_fixesfrom
mtellblom:widget_fixes
May 17, 2026
Merged

Fix widget auto-update and boot receiver reliability#296
EmmaTellblom merged 2 commits into
EmmaTellblom:widget_fixesfrom
mtellblom:widget_fixes

Conversation

@mtellblom
Copy link
Copy Markdown

Summary

  • Implement widget auto-update functionality with proper coroutine scope lifecycle in BootReceiver
  • Add MidnightWorker and PeriodCalculationWidgetUpdater for scheduled widget refresh
  • Fix threading and update reliability in BaseWidget and WidgetInstances
  • Fix deprecated usage in ExportImportDialog
  • Remove obsolete HTC-specific boot broadcast action from AndroidManifest.xml
  • Bump version to 2.1

Test plan

  • Install on a fresh device, reboot, and verify widgets update correctly after boot
  • Add a widget and confirm it refreshes at midnight without manual interaction
  • Verify period day calculations display correctly in all four widget variants
  • Confirm no regressions in the main calendar and symptom screens

🤖 Generated with Claude Code

- Add QUICKBOOT_POWERON to manifest so widgets refresh on quick reboot
- Update BootReceiver to trigger widget refresh and midnight scheduler on boot
- Wrap MidnightWorker work in try/finally so midnight is always rescheduled even on failure
- Remove HTC-specific boot broadcast action

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mtellblom mtellblom changed the base branch from main to widget_fixes May 16, 2026 08:03
The default locale renamed these keys to add _with_bg/_no_bg suffixes,
leaving the old keys as ExtraTranslation lint errors.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@EmmaTellblom EmmaTellblom merged commit 88c20ef into EmmaTellblom:widget_fixes May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants