OtpView icon indicating copy to clipboard operation
OtpView copied to clipboard

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

Open joancolmenerodev opened this issue 3 years ago • 1 comments

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 avatar Dec 10 '21 12:12 joancolmenerodev

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

joancolmenerodev avatar Dec 10 '21 16:12 joancolmenerodev