fix displaying missing carbs in wizard
This commit is contained in:
parent
5c506faa65
commit
edcfebfd41
1 changed files with 1 additions and 1 deletions
|
@ -380,7 +380,7 @@ public class WizardDialog extends DialogFragment implements OnClickListener {
|
||||||
correctionInsulin.setText(DecimalFormatter.to2Decimal(wizard.insulinFromCorrection) + "U");
|
correctionInsulin.setText(DecimalFormatter.to2Decimal(wizard.insulinFromCorrection) + "U");
|
||||||
calculatedTotalInsulin = wizard.calculatedTotalInsulin;
|
calculatedTotalInsulin = wizard.calculatedTotalInsulin;
|
||||||
|
|
||||||
if (calculatedTotalInsulin < 0) {
|
if (calculatedTotalInsulin <= 0) {
|
||||||
total.setText(getString(R.string.missing) + " " + DecimalFormatter.to0Decimal(wizard.carbsEquivalent) + "g");
|
total.setText(getString(R.string.missing) + " " + DecimalFormatter.to0Decimal(wizard.carbsEquivalent) + "g");
|
||||||
totalInsulin.setText("");
|
totalInsulin.setText("");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue