From 30680892971dbe807ab3551b209405f5006b4e59 Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Sun, 11 Mar 2018 20:56:11 +0100 Subject: [PATCH] Insight: add treatment to progress event --- .../androidaps/plugins/PumpInsight/InsightPumpPlugin.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/InsightPumpPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/InsightPumpPlugin.java index 85967c00e8..bbe3c18f89 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/InsightPumpPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/InsightPumpPlugin.java @@ -497,7 +497,10 @@ public class InsightPumpPlugin implements PluginBase, PumpInterface, Constraints if (result.success) { log("Success!"); + Treatment t = new Treatment(); + t.isSMB = detailedBolusInfo.isSMB; final EventOverviewBolusProgress bolusingEvent = EventOverviewBolusProgress.getInstance(); + bolusingEvent.t = t; bolusingEvent.status = String.format(MainApp.sResources.getString(R.string.bolusdelivered), detailedBolusInfo.insulin); bolusingEvent.percent = 100; MainApp.bus().post(bolusingEvent);