private void updateDialogClearTargets(final View dialog, final IndividualRoute individualRoute, final Action2<Geopoint, String> setTarget, final Action2<Route, Boolean> showElevationChart) {
        final View vClearTargets = dialog.findViewById(R.id.clear_targets);
        vClearTargets.setVisibility(isTargetSet.call() || Settings.isAutotargetIndividualRoute() ? View.VISIBLE : View.GONE);
        vClearTargets.setOnClickListener(v1 -> {
            if (setTarget != null) {
                setTarget.call(null, null);
            }
            Settings.setAutotargetIndividualRoute(false);
            individualRoute.triggerTargetUpdate(true);
            ActivityMixin.showToast(activity, R.string.map_manual_targets_cleared);
            updateDialogIndividualRoute(dialog, individualRoute, setTarget, showElevationChart);
        });
    }
show a popup for track/individual route, opened by using a long-tap on that item on the map
main/src/main/java/cgeo/geocaching/maps/RouteTrackUtils.java