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

Widget makes the app crash if used without a mask #34

Open
fuzzball1980 opened this issue Jun 26, 2021 · 0 comments
Open

Widget makes the app crash if used without a mask #34

fuzzball1980 opened this issue Jun 26, 2021 · 0 comments

Comments

@fuzzball1980
Copy link

fuzzball1980 commented Jun 26, 2021

Hi @santalu!

The widget makes the app crash if it is used without a mask. It is becasue a null listener is added on the overriden function onAttachedToWindow

I have replaced line 65 of MaskEditText.kt with the following validation to fix the issue

if(maskChangedListener != null) {
addTextChangedListener(maskChangedListener)
}

Good library!!

Thank you!

Cesar.-

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