Repository navigation
Froyo widget says when a read was last tried - #50
Merged
Merged
Conversation
Every read stores when it started, good or bad. The header adds "· tried HH:mm" when that is newer than the last good read, e.g. "Updated 05:48 · tried 20:40". When no read was good or even tried for 2 h it adds "· not updating", so a stuck job shows. 24 h times. A longer count moves under the title, so none of it is cut.
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 stayed on "as of 05:48" for days with no hint why. The gateway log showed no background reads from the phone for 14 h, so the refresh job was not running at all. This makes that visible on the widget itself.
froyo_tried_atwhen it starts, good or bad.· tried HH:mmwhen that is newer than the last good read:Updated 05:48 · tried 20:40,as of 05:48 · network · tried 20:40.· not updatingwhen no read was good or tried for 2 h.stackHeadernow takes the count length), so none of it is cut.Tests
headerAFreshGoodReadSaysOnlyUpdated,headerAReadTriedAfterTheLastGoodOneSaysTried,headerNoReadTriedFor2HoursSaysNotUpdating,aLongCountMovesUnderTheTitleSoNothingIsCut.tried HH:mm; screenshotfroyo-widget-tried.png.Not covered