From 35d153b5dc21922d46be540de7795a3e237096a3 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 9 Apr 2022 07:50:32 +0200 Subject: [PATCH] Debug: limit reset questions --- app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java index 33a29b6684..79ecb728ae 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java @@ -1569,7 +1569,8 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc editor.remove(option); for (String key : prefs.getAll().keySet()) - if ((key.startsWith("translated_") && cbGeneral.isChecked()) || + if ((!BuildConfig.DEBUG && + key.startsWith("translated_") && cbGeneral.isChecked()) || (key.endsWith(".show_full") && cbFull.isChecked()) || (key.endsWith(".show_images") && cbImages.isChecked()) || (key.endsWith(".confirm_link") && cbLinks.isChecked())) {