fix TT units
This commit is contained in:
parent
2561c3f8b6
commit
dd8d907f4f
|
@ -258,8 +258,8 @@ public class NewInsulinDialog extends DialogFragment implements OnClickListener
|
||||||
.duration((int) ttDuration)
|
.duration((int) ttDuration)
|
||||||
.reason("Eating soon")
|
.reason("Eating soon")
|
||||||
.source(Source.USER)
|
.source(Source.USER)
|
||||||
.low((int) finalTT)
|
.low(Profile.toMgdl(finalTT, currentProfile.getUnits()))
|
||||||
.high((int) finalTT);
|
.high(Profile.toMgdl(finalTT, currentProfile.getUnits()));
|
||||||
TreatmentsPlugin.getPlugin().addToHistoryTempTarget(tempTarget);
|
TreatmentsPlugin.getPlugin().addToHistoryTempTarget(tempTarget);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -189,13 +189,14 @@ public class CommandQueue {
|
||||||
add(new CommandSMBBolus(detailedBolusInfo, callback));
|
add(new CommandSMBBolus(detailedBolusInfo, callback));
|
||||||
} else {
|
} else {
|
||||||
add(new CommandBolus(detailedBolusInfo, callback, type));
|
add(new CommandBolus(detailedBolusInfo, callback, type));
|
||||||
if(type.equals(Command.CommandType.BOLUS))
|
if(type.equals(Command.CommandType.BOLUS)) {
|
||||||
// Bring up bolus progress dialog (start here, so the dialog is shown when the bolus is requested,
|
// Bring up bolus progress dialog (start here, so the dialog is shown when the bolus is requested,
|
||||||
// not when the Bolus command is starting. The command closes the dialog upon completion).
|
// not when the Bolus command is starting. The command closes the dialog upon completion).
|
||||||
showBolusProgressDialog(detailedBolusInfo.insulin, detailedBolusInfo.context);
|
showBolusProgressDialog(detailedBolusInfo.insulin, detailedBolusInfo.context);
|
||||||
// Notify Wear about upcoming bolus
|
// Notify Wear about upcoming bolus
|
||||||
MainApp.bus().post(new EventBolusRequested(detailedBolusInfo.insulin));
|
MainApp.bus().post(new EventBolusRequested(detailedBolusInfo.insulin));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
notifyAboutNewCommand();
|
notifyAboutNewCommand();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue