NumberPicker: Fix formatting

This commit is contained in:
2022-01-01 07:28:40 -06:00
parent 535bc03b70
commit 9770ce187a

View File

@@ -70,7 +70,7 @@ class NumberPickerFactory
val prevFocusChangeListener = picker2InputText.onFocusChangeListener val prevFocusChangeListener = picker2InputText.onFocusChangeListener
picker2InputText.onFocusChangeListener = View.OnFocusChangeListener { v, hasFocus -> picker2InputText.onFocusChangeListener = View.OnFocusChangeListener { v, hasFocus ->
val str = picker2InputText.text.toString() val str = picker2InputText.text.toString()
if(str.length == 1) picker2InputText.setText("${str}0") if (str.length == 1) picker2InputText.setText("${str}0")
prevFocusChangeListener.onFocusChange(v, hasFocus) prevFocusChangeListener.onFocusChange(v, hasFocus)
} }