From a3000b223e1c105d6192da7389c3220f1e0ba778 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 4 Jun 2021 13:17:57 +0200 Subject: [PATCH] Clear log on disabling protocol logging --- app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java index 3bec32c2d7..e07821cce4 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java @@ -554,6 +554,8 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc @Override public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { prefs.edit().putBoolean("protocol", checked).apply(); + if (!checked) + EntityLog.clear(compoundButton.getContext()); } });