Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NumberFormatException when you press "next" #10

Open
DmitrijsD opened this issue Apr 10, 2019 · 4 comments
Open

java.lang.NumberFormatException when you press "next" #10

DmitrijsD opened this issue Apr 10, 2019 · 4 comments

Comments

@DmitrijsD
Copy link

java.lang.NumberFormatException: For input string: "222222222222222222222"

Steps to reproduce:

  1. Input manually long number
  2. Press "next" on soft keyboard
@DmitrijsD
Copy link
Author

also java.lang.NumberFormatException: For input string: "-"

@jjimenez0611
Copy link

Y have the same error NumberFormatException. any update?

@Sash0k
Copy link

Sash0k commented Jan 14, 2021

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)

@GuilhE
Copy link

GuilhE commented Feb 18, 2021

fixed in #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants