Fix echo cancellation preference
This commit is contained in:
parent
4713fb4c68
commit
22479baea0
2 changed files with 0 additions and 9 deletions
|
@ -59,12 +59,6 @@ public class EchoCancellerCalibrationFragment extends Fragment {
|
||||||
@Override
|
@Override
|
||||||
public void ecCalibrationStatus(LinphoneCore lc,LinphoneCore.EcCalibratorStatus status, int delay_ms, Object data) {
|
public void ecCalibrationStatus(LinphoneCore lc,LinphoneCore.EcCalibratorStatus status, int delay_ms, Object data) {
|
||||||
LinphoneManager.getInstance().routeAudioToReceiver();
|
LinphoneManager.getInstance().routeAudioToReceiver();
|
||||||
|
|
||||||
if (status == EcCalibratorStatus.DoneNoEcho) {
|
|
||||||
LinphonePreferences.instance().setEchoCancellation(false);
|
|
||||||
} else if ((status == EcCalibratorStatus.Done) || (status == EcCalibratorStatus.Failed)) {
|
|
||||||
LinphonePreferences.instance().setEchoCancellation(true);
|
|
||||||
}
|
|
||||||
if (mSendEcCalibrationResult) {
|
if (mSendEcCalibrationResult) {
|
||||||
sendEcCalibrationResult(status, delay_ms);
|
sendEcCalibrationResult(status, delay_ms);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -223,9 +223,6 @@ public class SetupActivity extends FragmentActivity implements OnClickListener {
|
||||||
next.setEnabled(false);
|
next.setEnabled(false);
|
||||||
cancel.setEnabled(false);
|
cancel.setEnabled(false);
|
||||||
} else {
|
} else {
|
||||||
if (mPrefs.isFirstLaunch()) {
|
|
||||||
mPrefs.setEchoCancellation(LinphoneManager.getLc().hasBuiltInEchoCanceler());
|
|
||||||
}
|
|
||||||
success();
|
success();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue