From c0ebb8f206184467e53ed76d3fa01083869196ad Mon Sep 17 00:00:00 2001 From: Philoul Date: Sun, 11 Oct 2020 20:41:37 +0200 Subject: [PATCH] Remove BG decimal if mg/dl unit in Calculator --- .../java/info/nightscout/androidaps/dialogs/WizardDialog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/dialogs/WizardDialog.kt b/app/src/main/java/info/nightscout/androidaps/dialogs/WizardDialog.kt index fb28182e33..17ed64b96f 100644 --- a/app/src/main/java/info/nightscout/androidaps/dialogs/WizardDialog.kt +++ b/app/src/main/java/info/nightscout/androidaps/dialogs/WizardDialog.kt @@ -108,7 +108,7 @@ class WizardDialog : DaggerDialogFragment() { if (profileFunction.getUnits() == Constants.MGDL) treatments_wizard_bg_input.setParams(savedInstanceState?.getDouble("treatments_wizard_bg_input") - ?: 0.0, 0.0, 500.0, 1.0, DecimalFormat("0.0"), false, ok, textWatcher) + ?: 0.0, 0.0, 500.0, 1.0, DecimalFormat("0"), false, ok, textWatcher) else treatments_wizard_bg_input.setParams(savedInstanceState?.getDouble("treatments_wizard_bg_input") ?: 0.0, 0.0, 30.0, 0.1, DecimalFormat("0.0"), false, ok, textWatcher)