Files
Gadgetbridge/app
Gideon Zenz c516b6e379 Health Connect: Harden sync-start selection against non-positive sample timestamps
When determining the Health Connect sync start point for activity-sample
based data types (ACTIVITY, SLEEP), getFirstSampleTimestamp inspects only
the single oldest row and discards it if its timestamp is not positive.
If that oldest row has a 0 or otherwise non-positive timestamp, the start
point is null and sync is skipped for every data type backed by that table,
while data types on separate tables keep syncing.

Add a getFirstActivitySample(after) overload returning the oldest sample
with a timestamp strictly greater than the given limit, and use it with 0
so an invalid head row no longer disables start-point determination.
2026-05-29 15:31:12 +02:00
..
2024-02-19 12:14:36 +01:00