Comments (13)
Could you give mask example to reproduce bug? Also it will be helpful if you point which position you made input. Thanks
from masked-edittext.
It's your sample, I didn't make any alterations in code - I just typed and erased
from masked-edittext.
We also have this problem!
from masked-edittext.
👍 I'm also having same problem
from masked-edittext.
I have the same problem
If I try to delete a "word" (by holding backspace), it always remove all character (instead of replacing them with whitespaces an mask), then crash when I read
It can also happen if I delete single characters, but it's more random
from masked-edittext.
Main problem here was when you press back and don't release it. First deletion is happening one by one symbol. And then at some moment off time android begin to remove pack of symbols( > 1).
And current implementation is not handling this use case. I fix this in this pull request.
from masked-edittext.
Thanks
Will it take cares of the other's crashes? (not sure if it's the same problem)
from masked-edittext.
@richbarruet I am not sure now about other crashes, but i will investigate this problem and take care of them if they appear.
from masked-edittext.
The problem is still exists :(
But you can install fixed version from @Nublo repo via gradle
compile 'com.github.Nublo:masked-edittext:eeb70445d313647870a9fc398d997a6a65e1d673'
from masked-edittext.
+1 on collecting this issue and For @Nublo for a patch and distribution
from masked-edittext.
I experienced this fatal exception too. i used MaskedEditText together with TextInputLayout in Fragments, everytime in enter numbers in the field exceeding the limit. The fields that caused this problem had a TextWatcher directly on MaskEditText field inside the TextInputLayout as follows:
CODE:
postalCodeEditText.addTextChangedListener(new TextWatcher() {
// ...
});
To mitigate the problem :
-
Get the TextInputLayout
CODE:
postalCodeTextInputLayout = (TextInputLayout) getActivity().findViewById(R.id.TextInputLayout_postalCode);
-
Set the TextWatcher on the
TextInputLayout.getEditText()
CODE:
postalCodeTextInputLayout.getEditText().addTextChangedListener(new TextWatcher() { //... });
This was after i tried @Nublo's Fork which did not fix this either
This might be another dimension to the problem as there may still be another cause other than the one i mentioned.
from masked-edittext.
@ColinWa yes, now I see this problem again. Gonna try ytour solution and give feedback. Hopefully, it will be thumbs up :)
from masked-edittext.
@ColinWa even with this latest fix of yours, it still happens to me on some devices :(
from masked-edittext.
Related Issues (20)
- You can enter invalid characters
- How do i check if field is empty? HOT 1
- Fail when you keep backspace pressed HOT 1
- Set mask HOT 4
- how to hide text and show hint before we focus ..? HOT 5
- Bug When try to get UnmaskedText HOT 3
- Improvement for work with android.support.design.widget.TextInputLayout together
- Mask gets deleted when using Huawei Swype keyboard HOT 1
- Mask gets deleted when entering special characters in a numeric MaskedEditText HOT 1
- Save State Crash
- SetMaskedText is not displaying text
- file rename with extension masked
- [Bug] hint not working
- Is there a way to paste a phoneNumber to field
- Can I mask with (XXX) XXX-XXXX ext.XXX this format ?
- Multiline not supported
- Can not use MaskedEditText with Text Input layout
- Not working
- Manifest merger failed : App Name
- Crash when entering the wrong character HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from masked-edittext.