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

App crashing when app:hide_otp is set to "true" #45

Open
saqibsoftwares opened this issue Oct 29, 2021 · 0 comments
Open

App crashing when app:hide_otp is set to "true" #45

saqibsoftwares opened this issue Oct 29, 2021 · 0 comments

Comments

@saqibsoftwares
Copy link

It's crashing when app:hide_otp is set to "true". Working perfectly when it's set to "false".

/AndroidRuntime: FATAL EXCEPTION: main
Process: com.aku.myreferrals, PID: 14571
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aku.myreferrals/com.aku.myreferrals.activities.PinCodeActivity}: android.view.InflateException: Binary XML file line #76: Binary XML file line #76: Error inflating class in.aabhasjindal.otptextview.OtpTextView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2913)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: android.view.InflateException: Binary XML file line #76: Binary XML file line #76: Error inflating class in.aabhasjindal.otptextview.OtpTextView
Caused by: android.view.InflateException: Binary XML file line #76: Error inflating class in.aabhasjindal.otptextview.OtpTextView
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
at android.view.LayoutInflater.createView(LayoutInflater.java:647)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:699)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:195)
at com.aku.myreferrals.activities.PinCodeActivity.onCreate(PinCodeActivity.java:25)
at android.app.Activity.performCreate(Activity.java:7136)
at android.app.Activity.performCreate(Activity.java:7127)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2893)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0xffffff
at android.content.res.ResourcesImpl.getValueForDensity(ResourcesImpl.java:225)
at android.content.res.Resources.getDrawableForDensity(Resources.java:887)
at android.content.res.Resources.getDrawable(Resources.java:827)
at android.content.Context.getDrawable(Context.java:626)
at android.view.View.setBackgroundResource(View.java:21451)
at in.aabhasjindal.otptextview.ItemView.setText(ItemView.java:145)
at in.aabhasjindal.otptextview.OtpTextView.setOTP(OtpTextView.java:177)
at in.aabhasjindal.otptextview.OtpTextView$1.onTextChanged(OtpTextView.java:142)
at android.widget.TextView.sendOnTextChanged(TextView.java:9754)
at android.widget.TextView.setText(TextView.java:5733)
at android.widget.TextView.setText(TextView.java:5571)
at android.widget.EditText.setText(EditText.java:122)
at android.widget.TextView.setText(TextView.java:5528)
at in.aabhasjindal.otptextview.OtpTextView.setOTP(OtpTextView.java:235)
at in.aabhasjindal.otptextview.OtpTextView.generateViews(OtpTextView.java:112)
at in.aabhasjindal.otptextview.OtpTextView.styleEditTexts(OtpTextView.java:69)
at in.aabhasjindal.otptextview.OtpTextView.init(OtpTextView.java:63)
at in.aabhasjindal.otptextview.OtpTextView.(OtpTextView.java:52)
... 28 more

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