mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-24 17:45: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;
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user