Use isPhoneNumber from proxyConfig instead
This commit is contained in:
parent
5270bd8a5f
commit
15cb4a3919
1 changed files with 2 additions and 1 deletions
|
@ -162,7 +162,8 @@ public class InAppPurchaseActivity extends Activity implements InAppPurchaseList
|
|||
}
|
||||
|
||||
private boolean isUsernameCorrect(String username) {
|
||||
return username.matches("^(\\+)?(\\d-)?(\\d{3}-)?(\\d{3}-)?\\d{4,}$");
|
||||
LinphoneProxyConfig lpc = LinphoneManager.getLc().createProxyConfig();
|
||||
return lpc.isPhoneNumber(username);
|
||||
}
|
||||
|
||||
private void isUsernameRegistred(String username, final ImageView icon) {
|
||||
|
|
Loading…
Reference in a new issue