Repository navigation
fix: Froyo widget says when it updated, with a refresh button - #43
Merged
Merged
Conversation
The header shows 'Updated HH:mm' (24 h, local) after a good read and keeps 'as of HH:mm' after a failed one. A small refresh button in the header reads the list now and shows a spinner and 'Updating...' while it runs. The note shares the header line, so no row is lost.
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.
Summary
The Froyo · Upcoming widget now says when its list was read, and has a refresh button.
Updated HH:mm(24 h, local)as of HH:mm(unchanged; rows kept)Updating…+ spinner in place of ⟳FroyoWidgetProvider, which marks a refresh as running, redraws, and runs a one-time read with no network wait (offline fails at once toas of). The worker clears the mark infinally; a mark older than 2 min is ignored so a lost run never spins forever.core/Upcoming(syncLine,isRefreshing).Tests
UpcomingTest: Updated in local 24 h time (two zones, 23:05), as of after a failure, nothing before a first read, Updating while running, spinner stops when cleared/stale/clock back, rows per height unchanged.Froyo widget: tap ⟳ ->5 open · Updated HH:mmmatching the phone clock, all 5 rows still show; gateway down ->as of HH:mm, rows kept, no Updated; back up -> Updated again.Not covered