egslava/edittext-mask

How to change CPF/CNPJ mask at runtime?

welissonNeo opened this issue · 0 comments

I'm using this code into maskedit text onTextChanged:

If (cpfCnpj.lenght() > 11) {
cpfCnpj.setMask("##.###.###/####-##");
}

But this clear digited text.