mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-25 01:55:50 +01:00
Fix sleep score for current day
This commit is contained in:
parent
7a4fb57646
commit
d850439b4e
@ -148,7 +148,7 @@ public class DaySleepChartFragment extends AbstractActivityChartFragment<DaySlee
|
|||||||
|
|
||||||
int sleepScore = 0;
|
int sleepScore = 0;
|
||||||
if (!sleepScoreSamples.isEmpty()) {
|
if (!sleepScoreSamples.isEmpty()) {
|
||||||
sleepScore = sleepScoreSamples.get(0).getSleepScore();
|
sleepScore = sleepScoreSamples.get(sleepScoreSamples.size() - 1).getSleepScore();
|
||||||
}
|
}
|
||||||
|
|
||||||
return new MySleepChartsData(sleepSessions, totalSeconds, awakeSleepDuration, remSleepDuration, deepSleepDuration, lightSleepDuration, sleepScore);
|
return new MySleepChartsData(sleepSessions, totalSeconds, awakeSleepDuration, remSleepDuration, deepSleepDuration, lightSleepDuration, sleepScore);
|
||||||
|
Loading…
Reference in New Issue
Block a user