Repository navigation
fix: correct widget weather, steps, battery sync and refresh animation - #122
Merged
Merged
Conversation
Weather and data - Weather warnings named the wrong day: Gadgetbridge forecasts start tomorrow, and old payloads are now shifted by their timestamp - Tasks without a due date no longer push due tasks off the list; an empty list shows "No open tasks", a read failure stays blank - The next alarm follows a chosen date color Background work - Steps could never be switched off: show_steps is no longer mirrored into global prefs, and the service checks each widget's own prefs - Step state is saved on flush and once a minute with the screen off, not on every sensor event - Battery fell 10-17% behind without keep-alive: the refresh is a one-shot alarm re-armed on every update, 5 min by default and every minute while charging - Screen time no longer stays hidden after granting usage access - Events/Tasks no longer replay their page animation on every tick: full renders pick the page by visibility UI - Color pickers were hidden on Android 8-11 - Tapping the events block now reloads events - Larger tap area for the Events/Tasks switch arrow - Links no longer crash when no browser is installed Cleanup - Remove dead code: checkLimit, world clock branches, validateToggle, test-only wrappers, usage permission copies, two unused strings
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.
Fixes found in a repo audit, plus three user reports (battery out of sync, Events/Tasks animating on every refresh, small switch arrow).
Changes
show_stepsis no longer mirrored into global prefs; the service checks each placed widget's prefs with global fallback. Step state is saved on flush and once a minute with the screen off, not on every sensor event.setDisplayedChild. Full renders now pick the page by visibility; only the tap switch animates, followed by a full update.checkLimit, world clock branches,validateToggle, test-only wrappers, usage permission copies, two unused strings).Testing
./gradlew --offline testDebugUnitTest: all pass, including new tests for weather days, next alarm colour, charging refresh and the flipper page. New tests were checked to fail on the old code.lintDebug: 0 errors.scripts/check_strings.py: OK.assembleRelease(R8): OK before the last three changes.window=+1m0s, re-armed every minute while charging; the Events block no longer animates on refreshes and still animates on tap; the larger arrow tap area works.