public static void onPrepareOptionsMenu(final Menu menu) {
        menu.findItem(R.id.menu_trail_show).setVisible(!Settings.isMapTrail());
        menu.findItem(R.id.menu_trail_hide).setVisible(Settings.isMapTrail());
    }
Enable/disable history track related menu entries

@param menu menu to be configured
main/src/main/java/cgeo/geocaching/utils/HistoryTrackUtils.java