From 5973265eb4545bf1f029c42a71f7d6c9370c3c0a Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 6 Jul 2024 11:25:42 +0200 Subject: [PATCH] Small improvement --- .../main/java/eu/faircode/email/FragmentMessages.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 432300cf41..724ef7cb1c 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -5969,9 +5969,8 @@ public class FragmentMessages extends FragmentBase @Override public void onClick(View v) { snackbar.dismiss(); - if (checked) - prefs.edit().putBoolean("outlook_checked", true).apply(); - else + prefs.edit().putBoolean("outlook_checked", true).apply(); + if (!checked) prefs.edit().putLong("outlook_last_checked", now).apply(); Helper.viewFAQ(v.getContext(), 14); } @@ -5979,9 +5978,8 @@ public class FragmentMessages extends FragmentBase snackbar.addCallback(new Snackbar.Callback() { @Override public void onDismissed(Snackbar transientBottomBar, int event) { - if (checked) - prefs.edit().putBoolean("outlook_checked", true).apply(); - else + prefs.edit().putBoolean("outlook_checked", true).apply(); + if (!checked) prefs.edit().putLong("outlook_last_checked", now).apply(); } });