Do not perform echo canceller calibration on first startup if the device is known to have a built-in echo canceller.
This commit is contained in:
parent
16e5cf9690
commit
e01ba7f0e6
1 changed files with 8 additions and 5 deletions
|
@ -47,6 +47,7 @@ import org.linphone.core.LinphoneFriend;
|
|||
import org.linphone.core.Log;
|
||||
import org.linphone.core.OnlineStatus;
|
||||
import org.linphone.mediastream.Version;
|
||||
import org.linphone.mediastream.video.capture.hwconf.Hacks;
|
||||
import org.linphone.setup.SetupActivity;
|
||||
import org.linphone.ui.AddressText;
|
||||
|
||||
|
@ -1150,6 +1151,7 @@ public class LinphoneActivity extends FragmentActivity implements OnClickListene
|
|||
@Override
|
||||
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||
if ((requestCode == FIRST_LOGIN_ACTIVITY) && (resultCode == RESULT_OK)) {
|
||||
if (!Hacks.hasBuiltInEchoCanceller()) {
|
||||
Toast.makeText(this, getString(R.string.ec_calibration_launch_message), Toast.LENGTH_LONG).show();
|
||||
try {
|
||||
LinphoneManager.getInstance().startEcCalibration(this);
|
||||
|
@ -1157,6 +1159,7 @@ public class LinphoneActivity extends FragmentActivity implements OnClickListene
|
|||
Log.e(e, "Unable to calibrate EC");
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (resultCode == Activity.RESULT_FIRST_USER && requestCode == SETTINGS_ACTIVITY) {
|
||||
if (data.getExtras().getBoolean("Exit", false)) {
|
||||
exit();
|
||||
|
|
Loading…
Reference in a new issue