Only enable account after echo cancelation calibration to prevent message sound notification to interfere with calibration

This commit is contained in:
Sylvain Berfini 2014-12-11 17:39:35 +01:00
parent 60255aa415
commit b1a8d24e7f

View file

@ -341,6 +341,7 @@ public class SetupActivity extends FragmentActivity implements OnClickListener,
}
try {
builder.setEnabled(false); //We'll enable it after the echo calibration
builder.saveNewAccount();
accountCreated = true;
} catch (LinphoneCoreException e) {
@ -369,6 +370,7 @@ public class SetupActivity extends FragmentActivity implements OnClickListener,
}
public void isEchoCalibrationFinished() {
mPrefs.setAccountEnabled(0, true);
success();
}