NumberSlidingPicker
NumberSlidingPicker copied to clipboard
java.lang.NumberFormatException when you press "next"
java.lang.NumberFormatException: For input string: "222222222222222222222"
Steps to reproduce:
- Input manually long number
- Press "next" on soft keyboard
also java.lang.NumberFormatException: For input string: "-"
Y have the same error NumberFormatException. any update?
to fix, at this block:
if (!hasFocus) {
if (!editText.text.isNullOrEmpty()) {
setProgress(Integer.valueOf(editText.text.toString()), true)
} else {
editText.setText(data.value.toString())
}
}
replace to
setProgress(editText.text.toString().toIntOrNull() ?: Integer.MAX_VALUE, true)
fixed in #22