Ejemplo n.º 1
0
  @Override
  public void onDestroy() {
    LinphoneCore lc = RedfoxManager.getLcIfManagerNotDestroyedOrNull();
    if (lc != null) {
      lc.removeListener(mListener);
    }

    super.onDestroy();
  }
Ejemplo n.º 2
0
  @Override
  protected void onPause() {
    LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
    if (lc != null) {
      lc.removeListener(mListener);
    }

    super.onPause();
  }
Ejemplo n.º 3
0
  @Override
  protected void onPause() {
    LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
    if (lc != null) {
      lc.removeListener(mListener);
    }

    super.onPause();

    if (mControlsHandler != null && mControls != null) {
      mControlsHandler.removeCallbacks(mControls);
    }
    mControls = null;
  }
Ejemplo n.º 4
0
  @Override
  public void onPause() {
    latestImageMessages = null;
    message.removeTextChangedListener(textWatcher);
    removeVirtualKeyboardVisiblityListener();

    LinphoneService.instance().removeMessageNotification();

    LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
    if (lc != null) {
      lc.removeListener(this);
    }

    super.onPause();

    onSaveInstanceState(getArguments());
  }
  @Override
  protected void onDestroy() {
    if (mOrientationHelper != null) {
      mOrientationHelper.disable();
      mOrientationHelper = null;
    }

    LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
    if (lc != null) {
      lc.removeListener(mListener);
    }

    instance = null;
    super.onDestroy();

    unbindDrawables(findViewById(R.id.topLayout));
    System.gc();
  }
Ejemplo n.º 6
0
  @Override
  public void onPause() {
    message.removeTextChangedListener(textWatcher);
    removeVirtualKeyboardVisiblityListener();

    LinphoneService.instance().removeMessageNotification();

    if (LinphoneActivity.isInstanciated()) {
      LinphoneActivity.instance().updateChatFragment(null);
    }

    LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
    if (lc != null) {
      lc.removeListener(mListener);
    }

    onSaveInstanceState(getArguments());

    // Hide keybord
    InputMethodManager imm =
        (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
    imm.hideSoftInputFromWindow(message.getWindowToken(), 0);
    super.onPause();
  }