From b603fce8c7871b0370045ab85421fd01e4af2aa1 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sun, 11 Jun 2017 12:44:42 +0200 Subject: [PATCH] do not add empty iob series --- .../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 7d81f307a2..2723dd7757 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 @@ -1391,7 +1391,7 @@ public class OverviewFragment extends Fragment implements View.OnClickListener, iobGraph.getSeries().clear(); - if (showIobView.isChecked()) { + if (showIobView.isChecked() && iobData.length > 0) { addSeriesWithoutInvalidate(iobSeries, iobGraph); } if (showCobView.isChecked() && cobData.length > 0) {