Skip to content

hint phone number and auto-formatting  #154

@Flo354

Description

@Flo354

Hi,

There is a little issue with the new feature of hint : https://github.com/hbb20/CountryCodePickerProject/wiki/Example-phone-number-as-edittext-hint

Set the country to "France". The hint shown is "6 12 34 56 78".
If I type "612345678", the phone number is not formatted. I have to type "0612345678" (leading 0) to have it formatted nicely.

An idea to fix the bug:

  • show "06 12 34 56 78" as hint
  • when the user type, if the first number is not "0", insert automatically a zero at the first position

Another idea:

  • Format the phone number either for "612345678" and "0612345678"

Thanks,

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