From 80305aae3a00497892c0160dda46b13cfe4e7133 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Mon, 24 Apr 2017 13:24:16 +0200 Subject: [PATCH] fix iob rendering --- .../androidaps/plugins/Overview/OverviewFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java index 1dda241875..419b8a76be 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java @@ -1061,7 +1061,7 @@ public class OverviewFragment extends Fragment implements View.OnClickListener, //maxCobValueFound = Math.max(maxCobValueFound, mealData.mealCOB); } } - iobArray.add(iobArray.get(0)); // close the path + iobArray.add(new DataPoint(fromTime, 0)); // close the path DataPoint[] iobData = new DataPoint[iobArray.size()]; iobData = iobArray.toArray(iobData); iobSeries = new LineGraphSeries<>(iobData);