mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
HRV Status - fix missing linechart datasets when gap in data
This commit is contained in:
+3
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user