Repository navigation
Today: stop reloading every second; keep the header height fixed during sync - #48
Merged
Merged
Conversation
…ng sync Two causes of the flicker on Today: - TodayViewModel's HR, SpO2, BP and glucose polls stamped lastUpdated on every pass, changed reading or not. Today keys readiness, activity score, guidance, food, drinks and the step calibration on it, so all six re-ran about once a second while the screen sat still, with their computation on the main thread. The polls now stamp only on a change, and the loaders compute on Dispatchers.Default. - The sync progress line under the header appeared and disappeared, changing the header's height, so every sync shifted the tab down and back. Its 2dp are now always reserved. Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
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 the flicker on Today. It had two causes.
TodayViewModel's HR, SpO₂ (every 2 s), BP and glucose (every 5 s) polls stampedlastUpdatedon every pass, even when the reading hadn't changed.Dispatchers.Default.No design-file change: this is behaviour, not layout.
CI green on 5d84e5d. Not tried on a device.
Generated by Claude Code