1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-21 23:32:51 +00:00

Debug info: confirm/ask images/html

This commit is contained in:
M66B 2024-11-02 21:38:16 +01:00
parent f2461acda2
commit 0af07e57b3

View file

@ -624,6 +624,11 @@ public class DebugHelper {
try (OutputStream os = new BufferedOutputStream(new FileOutputStream(file))) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
for (String key : new String[]{"confirm_images", "ask_images", "confirm_html", "ask_html"})
size += write(os, String.format("%s=%b\r\n", key, prefs.getBoolean(key, true)));
size += write(os, "\r\n");
Map<String, ?> settings = prefs.getAll();
List<String> keys = new ArrayList<>(settings.keySet());
Collections.sort(keys);