Merge pull request #33 from Philoul/BG_Format_Calculator_mgdl
Remove BG decimal in Calculator if mg/dl units
This commit is contained in:
commit
2ba576afba
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue