private void logIn( String username, String password, String domain, boolean sendEcCalibrationResult) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); if (imm != null && getCurrentFocus() != null) { imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0); } saveCreatedAccount(username, password, domain); if (LinphoneManager.getLc().getDefaultProxyConfig() != null) { success(); // launchEchoCancellerCalibration(sendEcCalibrationResult); } }
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); currentFragment = SetupFragmentsEnum.ECHO_CANCELLER_CALIBRATION; back.setVisibility(View.VISIBLE); next.setVisibility(View.GONE); next.setEnabled(false); cancel.setEnabled(false); } else { if (mPrefs.isFirstLaunch()) { mPrefs.setEchoCancellation(false); } success(); } }
public void isEchoCalibrationFinished() { mPrefs.setAccountEnabled(mPrefs.getAccountCount() - 1, true); success(); }