@Override
 public void onItemClickListener(IntraUserInformation data, int position) {
   try {
     if (moduleManager.getActiveIntraUserIdentity() != null) {
       if (!moduleManager.getActiveIntraUserIdentity().getPublicKey().isEmpty())
         appSession.setData(INTRA_USER_SELECTED, data);
       changeActivity(
           Activities.CCP_SUB_APP_INTRA_USER_COMMUNITY_CONNECTION_OTHER_PROFILE.getCode());
     }
   } catch (CantGetActiveLoginIdentityException e) {
     e.printStackTrace();
   }
 }
 @Override
 public void onItemClickListener(IntraUserInformation data, int position) {
   ConnectDialog connectDialog = null;
   try {
     connectDialog =
         new ConnectDialog(
             getActivity(),
             (IntraUserSubAppSession) subAppsSession,
             subAppResourcesProviderManager,
             data,
             moduleManager.getActiveIntraUserIdentity());
     connectDialog.show();
   } catch (CantGetActiveLoginIdentityException e) {
     e.printStackTrace();
   }
 }
  private void showDialogHelp() {
    try {
      if (moduleManager.getActiveIntraUserIdentity() != null) {
        if (!moduleManager.getActiveIntraUserIdentity().getPublicKey().isEmpty()) {
          PresentationIntraUserCommunityDialog presentationIntraUserCommunityDialog =
              new PresentationIntraUserCommunityDialog(
                  getActivity(),
                  intraUserSubAppSession,
                  null,
                  moduleManager,
                  PresentationIntraUserCommunityDialog.TYPE_PRESENTATION_WITHOUT_IDENTITIES);
          presentationIntraUserCommunityDialog.show();
          presentationIntraUserCommunityDialog.setOnDismissListener(
              new DialogInterface.OnDismissListener() {
                @Override
                public void onDismiss(DialogInterface dialog) {
                  // showCriptoUsersCache();
                  onRefresh();
                  invalidate();
                }
              });
        } else {
          PresentationIntraUserCommunityDialog presentationIntraUserCommunityDialog =
              new PresentationIntraUserCommunityDialog(
                  getActivity(),
                  intraUserSubAppSession,
                  null,
                  moduleManager,
                  PresentationIntraUserCommunityDialog.TYPE_PRESENTATION);
          presentationIntraUserCommunityDialog.show();
          presentationIntraUserCommunityDialog.setOnDismissListener(
              new DialogInterface.OnDismissListener() {
                @Override
                public void onDismiss(DialogInterface dialog) {
                  Boolean isBackPressed =
                      (Boolean)
                          intraUserSubAppSession.getData(Constants.PRESENTATION_DIALOG_DISMISS);
                  if (isBackPressed != null) {
                    if (isBackPressed) {
                      getActivity().finish();
                    }
                  } else {
                    onRefresh();
                    // showCriptoUsersCache();

                  }
                }
              });
        }
      } else {
        PresentationIntraUserCommunityDialog presentationIntraUserCommunityDialog =
            new PresentationIntraUserCommunityDialog(
                getActivity(),
                intraUserSubAppSession,
                null,
                moduleManager,
                PresentationIntraUserCommunityDialog.TYPE_PRESENTATION);
        presentationIntraUserCommunityDialog.show();
        presentationIntraUserCommunityDialog.setOnDismissListener(
            new DialogInterface.OnDismissListener() {
              @Override
              public void onDismiss(DialogInterface dialog) {
                Boolean isBackPressed = null;

                isBackPressed =
                    (Boolean) intraUserSubAppSession.getData(Constants.PRESENTATION_DIALOG_DISMISS);

                if (isBackPressed != null) {
                  if (isBackPressed) {
                    getActivity().onBackPressed();
                  }
                } else onRefresh();
                // showCriptoUsersCache();
              }
            });
      }
    } catch (CantGetActiveLoginIdentityException e) {
      e.printStackTrace();
    }
  }