OtpView
OtpView copied to clipboard
Can not find com.github.aabhasr1:OtpView:v1.1.2-ktx
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.
That's because the setFocus(s.length)
in OtpTextView.kt
line 137, if you remove that line it would work.