1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 04:46:51 +01:00

HRV Status - fix missing linechart datasets when gap in data

This commit is contained in:
a0z 2024-08-22 18:16:28 +02:00
parent ef1d7171e8
commit b01169a307

View File

@ -149,7 +149,9 @@ public class HRVStatusFragment extends AbstractChartFragment<HRVStatusFragment.H
lineEntries.add(new Entry(day.i, day.dayAvg));
} else {
if (!lineEntries.isEmpty()) {
lineDataSets.add(createDataSet(lineEntries));
List<Entry> clone = new ArrayList<>(lineEntries.size());
clone.addAll(lineEntries);
lineDataSets.add(createDataSet(clone));
lineEntries.clear();
}
}