public boolean onPopupOptionsItemSelected(@NonNull final MenuItem item) {
        if (item.getItemId() == R.id.menu_target) {
            setAsTarget();
            return true;
        }

        if (CacheMenuHandler.onMenuItemSelected(item, this, cache, this::init, true)) {
            return true;
        }

        return LoggingUI.onMenuItemSelected(item, getActivity(), cache, dialog -> init());
    }
Set the current popup coordinates as new navigation target on map
main/src/main/java/cgeo/geocaching/AbstractDialogFragment.java