mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-28 19:45:50 +01:00
HRV Status - fix missing linechart datasets when gap in data
This commit is contained in:
parent
ef1d7171e8
commit
b01169a307
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user