private static int getIntFromString(final int prefKeyId, final int defaultValue) {
        try {
            return Integer.parseInt(getString(prefKeyId, String.valueOf(defaultValue)));
        } catch (Exception e) {
            return defaultValue;
        }

    }
Follow the global system setting for dark mode.
main/src/main/java/cgeo/geocaching/settings/Settings.java