public static void addToHistoryList(final int prefKey, final String historyValue) {
        final List<String> history = new ArrayList<>(Arrays.asList(getHistoryList(prefKey)));
        // bring entry to front, if it already existed
        history.remove(historyValue);
        history.add(0, historyValue);
        putStringList(prefKey, history);
    }
Remember the stata of the "hide visited waypoints"-checkbox in the waypoints overview dialog
main/src/main/java/cgeo/geocaching/settings/Settings.java