Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/xiaomi
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
..
miband7pro Xiaomi: rework weather service 2024-04-01 21:57:12 +02:00
miband8 Xiaomi: rework weather service 2024-04-01 21:57:12 +02:00
miband8active Xiaomi: rework weather service 2024-04-01 21:57:12 +02:00
miband8pro Xiaomi Smart Band 8 Pro: add experimental support 2024-01-17 20:16:38 +00:00
miwatch Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
miwatchcolorsport Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
redmismartband2 Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
redmismartbandpro Redmi Smart Band Pro: Fix password digits 2024-01-16 20:52:10 +00:00
redmiwatch2 Redmi Watch 2: Experimental support 2024-01-29 18:14:34 +00:00
redmiwatch2lite Redmi Watch 2: Experimental support 2024-01-29 18:14:34 +00:00
redmiwatch3 Xiaomi: rework weather service 2024-04-01 21:57:12 +02:00
redmiwatch3active Xiaomi: rework weather service 2024-04-01 21:57:12 +02:00
redmiwatch4 Redmi Watch 4: initial experimental support 2024-04-12 20:54:49 +02:00
watchs1 Xiaomi Watch S1: add experimental support 2024-01-17 20:16:38 +00:00
watchs1active Xiaomi: rework weather service 2024-04-01 21:57:12 +02:00
watchs1pro Xiaomi Watch S1 Pro: Enable charts for body temperature 2024-03-16 21:44:11 +00:00
watchs3 Xiaomi Watch S3: Experimental support 2024-01-17 20:29:06 +00:00
XiaomiCoordinator.java Xiaomi: Allow transliteration 2024-05-05 12:36:23 +01:00
XiaomiDailySummarySampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
XiaomiFWHelper.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
XiaomiInstallHandler.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
XiaomiManualSampleProvider.java Xiaomi: Fix temperature charts crash 2024-03-18 09:09:18 +00:00
XiaomiPaiSampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
XiaomiSampleProvider.java Xiaomi: fix determining fall asleep time 2024-05-07 13:33:52 +02:00
XiaomiSettingsCustomizer.java Nothing CMF Watch Pro: Initial support 2024-01-28 18:46:13 +00:00
XiaomiSleepStageSampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
XiaomiSleepTimeSampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
XiaomiSpo2SampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
XiaomiStressSampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
XiaomiTemperatureSampleProvider.java Xiaomi: Fix temperature sample range 2024-03-19 21:00:21 +00:00
XiaomiWeatherConditions.java Xiaomi: rework weather service 2024-04-01 21:57:12 +02:00
XiaomiWidgetManager.java Xiaomi: add support for 2x3 widget layouts 2024-04-12 20:54:49 +02:00
XiaomiWorkoutType.java Xiaomi: refactor WidgetManager for Redmi Watch 4 2024-04-12 20:54:49 +02:00