Giter VIP home page Giter VIP logo

Comments (13)

pinball83 avatar pinball83 commented on June 10, 2024

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.

olegosipenko avatar olegosipenko commented on June 10, 2024

It's your sample, I didn't make any alterations in code - I just typed and erased

from masked-edittext.

dschuermann avatar dschuermann commented on June 10, 2024

We also have this problem!

from masked-edittext.

SagarPanwala avatar SagarPanwala commented on June 10, 2024

👍 I'm also having same problem

from masked-edittext.

richbarruet avatar richbarruet commented on June 10, 2024

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.

Nublo avatar Nublo commented on June 10, 2024

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.

richbarruet avatar richbarruet commented on June 10, 2024

Thanks
Will it take cares of the other's crashes? (not sure if it's the same problem)

from masked-edittext.

Nublo avatar Nublo commented on June 10, 2024

@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.

dimmduh avatar dimmduh commented on June 10, 2024

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.

miroslavign avatar miroslavign commented on June 10, 2024

+1 on collecting this issue and For @Nublo for a patch and distribution

from masked-edittext.

ColinWa avatar ColinWa commented on June 10, 2024

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 :

  1. Get the TextInputLayout
    CODE:
    postalCodeTextInputLayout = (TextInputLayout) getActivity().findViewById(R.id.TextInputLayout_postalCode);

  2. 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.

miroslavign avatar miroslavign commented on June 10, 2024

@ColinWa yes, now I see this problem again. Gonna try ytour solution and give feedback. Hopefully, it will be thumbs up :)

from masked-edittext.

miroslavign avatar miroslavign commented on June 10, 2024

@ColinWa even with this latest fix of yours, it still happens to me on some devices :(

from masked-edittext.

Related Issues (20)

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.