From 13cd7dbda1b95eff71d5ac1690c1cd420ab623b6 Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Mon, 14 Aug 2017 13:44:53 +0200 Subject: [PATCH] insulincurves - ActivityGraph fix double plotting --- .../androidaps/plugins/InsulinFastacting/ActivityGraph.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/InsulinFastacting/ActivityGraph.java b/app/src/main/java/info/nightscout/androidaps/plugins/InsulinFastacting/ActivityGraph.java index a2181a3a15..5458337782 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/InsulinFastacting/ActivityGraph.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/InsulinFastacting/ActivityGraph.java @@ -21,7 +21,6 @@ import info.nightscout.androidaps.interfaces.InsulinInterface; */ public class ActivityGraph extends GraphView { - Context context; public ActivityGraph(Context context) { @@ -35,6 +34,8 @@ public class ActivityGraph extends GraphView { } public void show(InsulinInterface insulin) { + removeAllSeries(); + mSecondScale = null; double dia = insulin.getDia(); int hours = (int) Math.floor(dia + 1);