From 9dae8b4e56a7819c36b3fdbf186c6638aa74157f Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Sat, 11 Feb 2017 00:32:45 +0100 Subject: [PATCH] wear don't enact 0carbs/0bolus on wizard result --- .idea/misc.xml | 2 +- .../plugins/Wear/ActionStringHandler.java | 4 ++-- wear/wear.iml | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 5d19981032..fbb68289f4 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -37,7 +37,7 @@ - + diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Wear/ActionStringHandler.java b/app/src/main/java/info/nightscout/androidaps/plugins/Wear/ActionStringHandler.java index dc3bd3d489..f2abf45b02 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Wear/ActionStringHandler.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Wear/ActionStringHandler.java @@ -218,9 +218,9 @@ public class ActionStringHandler { if(bolusWizard.calculatedTotalInsulin <=0 && bolusWizard.carbs <=0){ rAction = "info"; rTitle = "INFO"; + } else { + rAction = actionstring; } - rAction = actionstring; - DecimalFormat format = new DecimalFormat("0.00"); rMessage += "Bolus: " + format.format(bolusWizard.calculatedTotalInsulin) + "U"; rMessage += "\nWizard: " + format.format(insulin) + "U"; diff --git a/wear/wear.iml b/wear/wear.iml index 33cd39a6c1..ce3df746e7 100644 --- a/wear/wear.iml +++ b/wear/wear.iml @@ -43,13 +43,6 @@ - - - - - - - @@ -58,6 +51,13 @@ + + + + + + +