コード例 #1
0
ファイル: SetupActivity.java プロジェクト: dnduc789/new
  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);
    }
  }
コード例 #2
0
ファイル: SetupActivity.java プロジェクト: dnduc789/new
 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();
   }
 }
コード例 #3
0
ファイル: SetupActivity.java プロジェクト: dnduc789/new
 public void isEchoCalibrationFinished() {
   mPrefs.setAccountEnabled(mPrefs.getAccountCount() - 1, true);
   success();
 }