public void doClick(boolean selectedInActionMode) {
    if (selectedInActionMode && mDragInfo != null && mDragInfo.parentView instanceof AbsListView) {
      Log.i(TAG, "Do click in action mode.");
      if (mDragReady) {
        if (mDragProgressDelegate != null) {
          mDragProgressDelegate.revertDragPreparation(this);
        }
        mDragReady = false;
      } else {
        // Due to the interactive ability of this widget
        AbsListView parentListView = (AbsListView) mDragInfo.parentView;
        int position = mDragInfo.positionAsChild;
        if (parentListView != null && position >= 0) {
          boolean lastChecked = parentListView.isItemChecked(position);

          parentListView.setItemChecked(position, !lastChecked);
          parentListView.invalidate();
        }
      }
    } else {
      Log.i(TAG, "Do click in non action mode .");
      if (mDragInfo.parentView instanceof AbsListView && mDragInfo.positionAsChild >= 0) {
        AbsListView parentListView = (AbsListView) mDragInfo.parentView;
        int position = mDragInfo.positionAsChild;
        OnItemClickListener clickListener = parentListView.getOnItemClickListener();
        if (clickListener != null) {
          clickListener.onItemClick(parentListView, this, position, this.getId());
        }
      }
    }
  }
  /** @param value */
  protected void setContactNickname(String aAddress, String aNickname, IImConnection conn) {
    try {

      IContactListManager listManager = conn.getContactListManager();
      int result = listManager.setContactName(aAddress, aNickname);
      if (result != ImErrorInfo.NO_ERROR) {
        Toast.makeText(
                mContext, mContext.getString(R.string.error_prefix) + result, Toast.LENGTH_LONG)
            .show(); // TODO -LS error handling
      }
    } catch (Exception e) {
      Toast.makeText(
              mContext,
              mContext.getString(R.string.error_prefix) + e.getMessage(),
              Toast.LENGTH_LONG)
          .show(); // TODO -LS error handling
    }
    mFilterList.invalidate();
    final InputMethodManager imm =
        (InputMethodManager) mContext.getSystemService(Context.INPUT_METHOD_SERVICE);
    imm.hideSoftInputFromWindow(getWindowToken(), 0);
  }