show IC and ICF with 1 decimal
This commit is contained in:
parent
0af894aa56
commit
86755599df
1 changed files with 2 additions and 2 deletions
|
@ -295,7 +295,7 @@ public class WizardDialog extends DialogFragment implements OnClickListener {
|
||||||
bgDiff = lastBgValue - targetBGHigh;
|
bgDiff = lastBgValue - targetBGHigh;
|
||||||
}
|
}
|
||||||
|
|
||||||
bg.setText(lastBg.valueToUnitsToString(units) + " ISF: " + DecimalFormatter.to0Decimal(sens));
|
bg.setText(lastBg.valueToUnitsToString(units) + " ISF: " + DecimalFormatter.to1Decimal(sens));
|
||||||
bgInsulin.setText(DecimalFormatter.to2Decimal(bgDiff / sens) + "U");
|
bgInsulin.setText(DecimalFormatter.to2Decimal(bgDiff / sens) + "U");
|
||||||
bgInput.removeTextChangedListener(textWatcher);
|
bgInput.removeTextChangedListener(textWatcher);
|
||||||
//bgInput.setText(lastBg.valueToUnitsToString(units));
|
//bgInput.setText(lastBg.valueToUnitsToString(units));
|
||||||
|
@ -371,7 +371,7 @@ public class WizardDialog extends DialogFragment implements OnClickListener {
|
||||||
bg.setText(c_bg + " ISF: " + DecimalFormatter.to0Decimal(wizard.sens));
|
bg.setText(c_bg + " ISF: " + DecimalFormatter.to0Decimal(wizard.sens));
|
||||||
bgInsulin.setText(DecimalFormatter.to2Decimal(wizard.insulinFromBG) + "U");
|
bgInsulin.setText(DecimalFormatter.to2Decimal(wizard.insulinFromBG) + "U");
|
||||||
|
|
||||||
carbs.setText(DecimalFormatter.to0Decimal(c_carbs) + "g IC: " + DecimalFormatter.to0Decimal(wizard.ic));
|
carbs.setText(DecimalFormatter.to0Decimal(c_carbs) + "g IC: " + DecimalFormatter.to1Decimal(wizard.ic));
|
||||||
carbsInsulin.setText(DecimalFormatter.to2Decimal(wizard.insulinFromCarbs) + "U");
|
carbsInsulin.setText(DecimalFormatter.to2Decimal(wizard.insulinFromCarbs) + "U");
|
||||||
|
|
||||||
bolusIobInsulin.setText(DecimalFormatter.to2Decimal(wizard.insulingFromBolusIOB) + "U");
|
bolusIobInsulin.setText(DecimalFormatter.to2Decimal(wizard.insulingFromBolusIOB) + "U");
|
||||||
|
|
Loading…
Reference in a new issue