1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-24 19:06:53 +01:00
Gadgetbridge/app
MrYoranimo 508a86b8ed Xiaomi: fix determining fall asleep time
Because the previous implementation of determining the time the user
falls asleep in a given time range would take the 24 hours in advance
into account, graphs displaying sleep data would erroneously indicate
that the user has been asleep since the start of the timeframe if
the user was asleep during the rollover of the time frame 24 hours
before.

This commit change the algorithm to only fetch the last sleep stage
sample and sleep range sample from the database that occurred before
the given time range. This saves having to process 24 hours worth of
samples before the time range in both cases, and prevents taking into
account irrelevant sleep ranges.
2024-05-07 13:33:52 +02:00
..
src Xiaomi: fix determining fall asleep time 2024-05-07 13:33:52 +02:00
build.gradle Update hamcrest-library to 2.2 2024-04-15 23:45:55 +01:00
lint-baseline.xml Update linter baseline 2024-02-19 12:14:36 +01:00
proguard-rules.pro Add lint baseline, enable linting on CI, fix some reported errors (#3291) 2023-09-11 09:17:04 +00:00