do not add empty iob series

This commit is contained in:
Milos Kozak 2017-06-11 12:44:42 +02:00
parent f6650e33e4
commit b603fce8c7

View file

@ -1391,7 +1391,7 @@ public class OverviewFragment extends Fragment implements View.OnClickListener,
iobGraph.getSeries().clear(); iobGraph.getSeries().clear();
if (showIobView.isChecked()) { if (showIobView.isChecked() && iobData.length > 0) {
addSeriesWithoutInvalidate(iobSeries, iobGraph); addSeriesWithoutInvalidate(iobSeries, iobGraph);
} }
if (showCobView.isChecked() && cobData.length > 0) { if (showCobView.isChecked() && cobData.length > 0) {