From 2fc5048ccb3bad6f6699b53837be04d042e0a04b Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Mon, 15 Dec 2014 15:53:27 +0100 Subject: [PATCH] Fix issue with wizard if device has built-in aec --- src/org/linphone/setup/SetupActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/linphone/setup/SetupActivity.java b/src/org/linphone/setup/SetupActivity.java index 46f056ae3..1e0c60b11 100644 --- a/src/org/linphone/setup/SetupActivity.java +++ b/src/org/linphone/setup/SetupActivity.java @@ -190,6 +190,7 @@ public class SetupActivity extends FragmentActivity implements OnClickListener, private void launchEchoCancellerCalibration(boolean sendEcCalibrationResult) { boolean needsEchoCalibration = LinphoneManager.getLc().needsEchoCalibration(); if (needsEchoCalibration && mPrefs.isFirstLaunch()) { + mPrefs.setAccountEnabled(mPrefs.getAccountCount() - 1, false); //We'll enable it after the echo calibration EchoCancellerCalibrationFragment fragment = new EchoCancellerCalibrationFragment(); fragment.enableEcCalibrationResultSending(sendEcCalibrationResult); changeFragment(fragment); @@ -341,7 +342,6 @@ 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) { @@ -370,7 +370,7 @@ public class SetupActivity extends FragmentActivity implements OnClickListener, } public void isEchoCalibrationFinished() { - mPrefs.setAccountEnabled(0, true); + mPrefs.setAccountEnabled(mPrefs.getAccountCount() - 1, true); success(); }