<NME> PreferenceSystemFragment.java
<BEF> package cgeo.geocaching.settings.fragments;

import cgeo.geocaching.R;
import cgeo.geocaching.settings.ViewSettingsActivity;
import cgeo.geocaching.utils.DebugUtils;
import static cgeo.geocaching.utils.SettingsUtils.setPrefClick;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import android.content.Intent;
import android.os.Bundle;

public class PreferenceSystemFragment extends BasePreferenceFragment {
    @Override
    public void onCreatePreferences(final Bundle savedInstanceState, final String rootKey) {
        setPreferencesFromResource(R.xml.preferences_system, rootKey);
    }
    @Override
    public void onResume() {
        super.onResume();
        final Activity activity = getActivity();
        activity.setTitle(R.string.settings_title_system);

        setPrefClick(this, R.string.pref_memory_dump, () -> DebugUtils.createMemoryDump(activity));
        setPrefClick(this, R.string.pref_generate_logcat, () -> DebugUtils.createLogcat(activity));
        setPrefClick(this, R.string.pref_generate_infos_downloadmanager, () -> DebugUtils.dumpDownloadmanagerInfos(activity));
        setPrefClick(this, R.string.pref_view_settings, () -> startActivity(new Intent(activity, ViewSettingsActivity.class)));
    }
}
        findPreference(getString(R.string.pref_debug)).setOnPreferenceChangeListener((pref, newValue) -> {
            Log.setDebug((Boolean) newValue);
            return true;
        });

        initPublicFolders(this, activity.getCsah());
    }
}

<MSG> reenable setting base folder (fix #12123)

<DFF> @@ -1,11 +1,12 @@
 package cgeo.geocaching.settings.fragments;
 
 import cgeo.geocaching.R;
+import cgeo.geocaching.settings.SettingsActivity;
 import cgeo.geocaching.settings.ViewSettingsActivity;
 import cgeo.geocaching.utils.DebugUtils;
+import static cgeo.geocaching.utils.SettingsUtils.initPublicFolders;
 import static cgeo.geocaching.utils.SettingsUtils.setPrefClick;
 
-import android.app.Activity;
 import android.content.Intent;
 import android.os.Bundle;
 
@@ -20,12 +21,15 @@ public class PreferenceSystemFragment extends PreferenceFragmentCompat {
     @Override
     public void onResume() {
         super.onResume();
-        final Activity activity = getActivity();
+        final SettingsActivity activity = (SettingsActivity) getActivity();
+        assert activity != null;
         activity.setTitle(R.string.settings_title_system);
 
         setPrefClick(this, R.string.pref_memory_dump, () -> DebugUtils.createMemoryDump(activity));
         setPrefClick(this, R.string.pref_generate_logcat, () -> DebugUtils.createLogcat(activity));
         setPrefClick(this, R.string.pref_generate_infos_downloadmanager, () -> DebugUtils.dumpDownloadmanagerInfos(activity));
         setPrefClick(this, R.string.pref_view_settings, () -> startActivity(new Intent(activity, ViewSettingsActivity.class)));
+
+        initPublicFolders(this, activity.getCsah());
     }
 }

reenable setting base folder (fix #12123)