From 8e9948272383a556e7e13accf75bab364c732ce7 Mon Sep 17 00:00:00 2001 From: Andy Rozman Date: Thu, 26 Jul 2018 17:31:38 +0100 Subject: [PATCH] Some fixes in merge --- .../plugins/PumpCommon/PumpPluginAbstract.java | 2 +- .../plugins/PumpMedtronic/MedtronicPumpPlugin.java | 2 +- .../plugins/PumpVirtual/VirtualPumpDriver.java | 2 +- app/src/main/res/values/strings.xml | 12 ++++++++++++ app/src/main/res/values/styles.xml | 4 +--- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCommon/PumpPluginAbstract.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCommon/PumpPluginAbstract.java index fae1d634f6..5da160906a 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCommon/PumpPluginAbstract.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCommon/PumpPluginAbstract.java @@ -458,7 +458,7 @@ public abstract class PumpPluginAbstract extends PluginBase implements PumpInter return deliverBolus(detailedBolusInfo); } else { // no bolus required, carb only treatment - TreatmentsPlugin.getPlugin().addToHistoryTreatment(detailedBolusInfo); + TreatmentsPlugin.getPlugin().addToHistoryTreatment(detailedBolusInfo, true); EventOverviewBolusProgress bolusingEvent = EventOverviewBolusProgress.getInstance(); bolusingEvent.t = new Treatment(); diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpMedtronic/MedtronicPumpPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpMedtronic/MedtronicPumpPlugin.java index bb268d2f30..77a22b5a58 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpMedtronic/MedtronicPumpPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpMedtronic/MedtronicPumpPlugin.java @@ -470,7 +470,7 @@ public class MedtronicPumpPlugin extends PumpPluginAbstract implements PumpInter if (response) { // FIXME this needs to be fixed to read info from history - boolean treatmentCreated = TreatmentsPlugin.getPlugin().addToHistoryTreatment(detailedBolusInfo); + boolean treatmentCreated = TreatmentsPlugin.getPlugin().addToHistoryTreatment(detailedBolusInfo, true); getMDTPumpStatus().reservoirRemainingUnits -= detailedBolusInfo.insulin; // we subtract insulin, exact amount will be visible with next remainingInsulin update. diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpVirtual/VirtualPumpDriver.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpVirtual/VirtualPumpDriver.java index 3396f09841..f9060d9eb9 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpVirtual/VirtualPumpDriver.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpVirtual/VirtualPumpDriver.java @@ -186,7 +186,7 @@ public class VirtualPumpDriver extends PumpDriverAbstract { LOG.debug("Delivering treatment insulin: " + detailedBolusInfo.insulin + "U carbs: " + detailedBolusInfo.carbs + "g " + result); MainApp.bus().post(new EventVirtualPumpUpdateGui()); pumpStatusData.setLastCommunicationToNow(); - TreatmentsPlugin.getPlugin().addToHistoryTreatment(detailedBolusInfo); + TreatmentsPlugin.getPlugin().addToHistoryTreatment(detailedBolusInfo, true); return result; } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 9187c6d912..e06b7f33f5 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1170,6 +1170,18 @@ key_plugin_stats_report_timestamp No autosens data available + + %d day + %d days + + + %d hour + %d hours + + + %d minute + %d minutes + Virtual Pump Type Pump Definition diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index b42314addc..3ce7e0d135 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -27,13 +27,11 @@ -<<<<<<< HEAD