Skip to content

MaskedTextChangedListener implementation bug #24

@derkicker

Description

@derkicker

Came across an issue with mask format. When a textChangedListener is installed on a text edit it uses number example to make a mask. Problem is that number example is just on of the possible variants of the input so using it for the mask restricts from another valid input of different format.

Example:
Indonesian mobile number + 62 812 111-222-33 which is perfectly valid, it's number pattern in the google lib is 8[1-35-9]\d{7,10}.
It's impossible to input the whole number because textChangedListener uses short variant of mask +[00] [000]-[000]-[000] so it allows only + 62 812 111-222.

The workaround is using a widest possible mask format i guess.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions