Giter VIP home page Giter VIP logo

otpview's Introduction

OtpView

Android Otp View

otpview's People

Contributors

m-fakhri avatar

Watchers

 avatar

otpview's Issues

IndexOutOfBoundsException after the second paste.

I have copied and pasted 6 digits and all is right, but when I wanted to paste again and overwrite the old code with a new one I got IndexOutOfBoundsException

Process: com.elib.crk, PID: 10179
java.lang.IndexOutOfBoundsException: Index: 6, Size: 6
at java.util.ArrayList.get(ArrayList.java:437)
at view.otpview.OTPView$init$1$1$1.invoke(OTPView.kt:110)
at view.otpview.OTPView$init$1$1$1.invoke(OTPView.kt:86)
at view.otpview.utils.OTPTextWatcher.onTextChanged(OTPTextWatcher.kt:15)
at android.widget.TextView.sendOnTextChanged(TextView.java:11881)
at android.widget.TextView.handleTextChanged(TextView.java:12010)
at android.widget.TextView$ChangeWatcher.onTextChanged(TextView.java:15271)
at android.text.SpannableStringBuilder.sendTextChanged(SpannableStringBuilder.java:1281)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:590)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:521)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:39)
at android.view.inputmethod.BaseInputConnection.replaceText(BaseInputConnection.java:945)
at android.view.inputmethod.BaseInputConnection.commitText(BaseInputConnection.java:219)
at com.android.internal.inputmethod.EditableInputConnection.commitText(EditableInputConnection.java:201)
at com.android.internal.inputmethod.RemoteInputConnectionImpl.lambda$commitText$16$com-android-internal-inputmethod-RemoteInputConnectionImpl(RemoteInputConnectionImpl.java:569)
at com.android.internal.inputmethod.RemoteInputConnectionImpl$$ExternalSyntheticLambda34.run(Unknown Source:8)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8741)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.