private void showUserActionsDialog(final View view) {
        final Context context = view.getContext();
        user.setContext(context);

        final List<UserAction> userActions = createUserActions(user);
        if (userActions.isEmpty()) {
            return;
        }

        final Resources res = context.getResources();

        final ContextMenuDialog dialog = new ContextMenuDialog((Activity) context);
        dialog.setTitle(res.getString(R.string.user_menu_title) + " " + user.userName);

        for (UserAction action : userActions) {
            dialog.addItem(action.displayResourceId, action.iconId, null);
        }
        dialog.setOnClickAction(pos -> userActions.get(pos).run(user));
        dialog.show();
    }
Opens a dialog to do actions on a user name
main/src/main/java/cgeo/geocaching/ui/UserClickListener.java