Merge pull request #1 from AdrianLxM/patch-19
Insight: add treatment to progress event
This commit is contained in:
commit
d353a10187
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue