Fix don't asking for phone number if the domain is not a linphone domain
This commit is contained in:
parent
54aed57e04
commit
310187deb0
1 changed files with 5 additions and 1 deletions
|
@ -168,8 +168,12 @@ private static AssistantActivity instance;
|
|||
if (address != null && address.asString().equals(cfg.getAddress().asString()) ) {
|
||||
if (state == RegistrationState.RegistrationOk) {
|
||||
if (progress != null) progress.dismiss();
|
||||
if (LinphoneManager.getLc().getDefaultProxyConfig() != null) {
|
||||
if (getResources().getBoolean(R.bool.use_phone_number_validation)
|
||||
&& cfg.getDomain().equals(getString(R.string.default_domain))
|
||||
&& LinphoneManager.getLc().getDefaultProxyConfig() != null) {
|
||||
accountCreator.isAccountUsed();
|
||||
} else {
|
||||
success();
|
||||
}
|
||||
} else if (state == RegistrationState.RegistrationFailed) {
|
||||
if (progress != null) progress.dismiss();
|
||||
|
|
Loading…
Reference in a new issue