private void updateDialogTracks(final View dialog, final Tracks tracks, final Action2<Route, Boolean> showElevationChart) {
        if (dialog == null) {
            return;
        }
        final LinearLayout tracklist = dialog.findViewById(R.id.tracklist);
        tracklist.removeAllViews();
        dialog.findViewById(R.id.trackroute_load).setOnClickListener(v1 -> csah.selectMultipleFiles(null, PersistableFolder.GPX.getUri()));

        tracks.traverse((key, geoData) -> {
            final Toolbar tb = activity.getLayoutInflater().inflate(R.layout.routes_tracks_item, null).findViewById(R.id.routes_track_item);
            tb.inflateMenu(R.menu.map_routetrack_context);
            tb.setOnMenuItemClickListener(item -> handleContextMenuClick(item, showElevationChart, geoData, () -> updateDialogTracks(dialog, tracks, showElevationChart)));
            configureContextMenu(tb.getMenu(), true, geoData, false);

            final TextView displayName = tb.findViewById(R.id.item_title);
            displayName.setText(tracks.getDisplayname(key));

            final MenuItem vColor = tb.getMenu().findItem(R.id.menu_color);
            setColorIcon(vColor, tracks.getColor(key));
            vColor.getActionView().setOnClickListener(view -> setTrackColor(activity, tracks, key, vColor, updateTrack));

            tracklist.addView(tb);
        });
    }
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