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

Can not find com.github.aabhasr1:OtpView:v1.1.2-ktx #47

Open
joancolmenerodev opened this issue Dec 10, 2021 · 1 comment
Open

Can not find com.github.aabhasr1:OtpView:v1.1.2-ktx #47

joancolmenerodev opened this issue Dec 10, 2021 · 1 comment

Comments

@joancolmenerodev
Copy link

joancolmenerodev commented Dec 10, 2021

I expect that if I have a check for instance

if(otp=="123456"){
otpTextView?.showSuccess()
}
else {
otpTextView?.showError()
}

But it's not updating the state, it only updates the state when I tap on a button and set the state.

@joancolmenerodev
Copy link
Author

That's because the setFocus(s.length) in OtpTextView.kt line 137, if you remove that line it would work.

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

1 participant