Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge
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
..
activities Prevent query for devices that have activity card disabled 2024-05-04 23:51:19 +01:00
adapter Prevent query for devices that have activity card disabled 2024-05-04 23:51:19 +01:00
capabilities Xiaomi: add support for 2x3 widget layouts 2024-04-12 20:54:49 +02:00
contentprovider Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
database [Huawei] Fix PR #3742, add workout frequency and altitude 2024-05-01 16:32:27 +00:00
deviceevents Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
devices Xiaomi: fix determining fall asleep time 2024-05-07 13:33:52 +02:00
entities Fossil/Skagen Hybrids: Use steps instead of calories for activity intensity 2024-02-23 20:54:49 +01:00
export Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
externalevents Added debug end call to the API 2024-04-28 23:19:24 +02:00
impl Zepp OS: Sync calendar event reminders 2024-04-25 15:58:57 +01:00
model [Huawei] fix: use correct coordinator for watch fit 2 2024-05-01 22:24:36 +02:00
service Xiaomi: fix sleep stages not getting parsed from sleep details files 2024-05-07 13:17:10 +02:00
util Rework Armenian transliteration to handle more edge cases around mixed letters 2024-05-04 20:45:35 +04:00
GBApplication.java HPlus: Migrate global preferences to device-specific 2024-04-28 19:02:20 +01:00
GBEnvironment.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
GBException.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
LockHandler.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
Logging.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
LoggingExceptionHandler.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
SleepAlarmWidget.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
Widget.java Dashboard view (#3478) 2024-04-04 19:28:04 +00:00