mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
getActivityKindForSample was written before AWAKE_SLEEP existed in ActivityKind (April 2024 vs August 2024), so decoded stage 5 (awake during sleep) fell through to UNKNOWN. This caused the sleep overlay to skip awake periods, which may fragment sleep sessions in SleepAnalysis and result in missing or truncated Health Connect sleep records. See: https://codeberg.org/Freeyourgadget/Gadgetbridge/issues/5920