Open
Conversation
…getUpdater, version bump, DB v11, strings, widget providers Co-authored-by: mrknutte26 <250676908+mrknutte26@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update fork with changes from PR 289
Apply upstream widget fixes (PR #289) to fork
Mar 9, 2026
mrknutte26
approved these changes
Mar 9, 2026
…nightTrigger emit Co-authored-by: mrknutte26 <250676908+mrknutte26@users.noreply.github.com>
Fix widget updates: stale data after reboot, premature MidnightTrigger emit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports EmmaTellblom#289 ("Widget fixes") into this fork. Widgets were not updating after calculation changes or across midnight/reboots.
New
PeriodCalculationWidgetUpdater— singleton that diffs the last known next-period date and fires widget updates only on change;@Volatilefor thread safetyModified
CalculationsHelper.nextPeriod()— callsPeriodCalculationWidgetUpdater.updateWidgetsIfPeriodChanged()on each DB-triggered recalculationDatabaseUtils.createDatabase()— adds missingdatabaseVersion11()call so fresh installs get the unique index onperiods.date/ovulations.dateapp/build.gradle.kts— version bump2.0 (24)→2.1 (25)with_label_with_bg,no_label_with_bg,with_label_no_bg,no_label_no_bg); widget provider XMLs updated accordinglygradlew— restored executable bitOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.