private static void removeDirect(final String key) {
        if (sharedPrefs == null) {
            return;
        }
        final SharedPreferences.Editor edit = sharedPrefs.edit();
        edit.remove(key);
        edit.apply();
    }
Follow the global system setting for dark mode.
main/src/main/java/cgeo/geocaching/settings/Settings.java