From 4231557c9fc819dde527d757e3e5c250d33cbbdc Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Thu, 8 Jun 2017 23:18:38 +0200 Subject: [PATCH] fix axis --- .../androidaps/plugins/Overview/OverviewFragment.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 900c5c27ad..7325e4e6af 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 @@ -1296,7 +1296,7 @@ public class OverviewFragment extends Fragment implements View.OnClickListener, List iobArray = new ArrayList<>(); List cobArray = new ArrayList<>(); List devArray = new ArrayList<>(); - double lastIob = -1000; + double lastIob = 0; int lastCob = 0; for (long time = fromTime; time <= now; time += 5 * 60 * 1000L) { if (showIobView.isChecked()) { @@ -1553,8 +1553,8 @@ public class OverviewFragment extends Fragment implements View.OnClickListener, paint.setColor(Color.WHITE); seriesNow.setCustomPaint(paint); seriesNow2.setCustomPaint(paint); - bgGraph.onDataChanged(true, true); - iobGraph.onDataChanged(true, true); + bgGraph.onDataChanged(false, false); + iobGraph.onDataChanged(false, false); if (updating != null) updating.setVisibility(View.GONE);