Files
Gadgetbridge/app
Gideon Zenz 00c0a2ba5c Xiaomi: Suppress premature activity-data-finish signal during two-phase fetch
The Xiaomi two-phase activity fetch (today + past) could fire the data-finish
signal that triggers downstream consumers before all DETAILS files had been
parsed, so a consumer reading the database in that gap saw an incomplete
picture. Hold the finish signal until both fetch phases have delivered and
all files are parsed.

Use an AtomicBoolean for the fetch-hold flag and set awaitingPastResponse
before the fetch starts to avoid signalling between the two phases.
2026-06-05 14:55:20 +02:00
..
2024-02-19 12:14:36 +01:00