public void showPopup(final IndividualRoute individualRoute, final Action2<Geopoint, String> setTarget, @Nullable final Action2<Route, Boolean> showElevationChart) {
        popup = activity.getLayoutInflater().inflate(R.layout.routes_tracks_dialog, null);
        updateDialogIndividualRoute(popup, individualRoute, setTarget, showElevationChart);
        updateDialogTracks(popup, tracks, showElevationChart);
        dialog = Dialogs.bottomSheetDialogWithActionbar(activity, popup, R.string.routes_tracks_dialog_title);
        dialog.setOnDismissListener(dialog1 -> popup = null);
        dialog.show();
    }
Shows a popup menu for individual route related items
main/src/main/java/cgeo/geocaching/maps/RouteTrackUtils.java