unify aaps and wear wizard
This commit is contained in:
parent
c44374c6dd
commit
dec3b1ca2f
|
@ -57,7 +57,7 @@ class WizardActivity : ViewSelectorActivity() {
|
||||||
val view = viewAdapter.root
|
val view = viewAdapter.root
|
||||||
val percentage = sp.getInt(getString(R.string.key_bolus_wizard_percentage), 100).toDouble()
|
val percentage = sp.getInt(getString(R.string.key_bolus_wizard_percentage), 100).toDouble()
|
||||||
val initValue = SafeParse.stringToDouble(editPercentage?.editText?.text.toString(), percentage)
|
val initValue = SafeParse.stringToDouble(editPercentage?.editText?.text.toString(), percentage)
|
||||||
editPercentage = PlusMinusEditText(viewAdapter, initValue, 50.0, 150.0, 1.0, DecimalFormat("0"), false, getString(R.string.action_percentage))
|
editPercentage = PlusMinusEditText(viewAdapter, initValue, 10.0, 2000.0, 5.0, DecimalFormat("0"), false, getString(R.string.action_percentage))
|
||||||
container.addView(view)
|
container.addView(view)
|
||||||
view
|
view
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue